Commit Graph

1978 Commits

Author SHA1 Message Date
世界 0b76efedc9 Stop using DHCP on iOS and tvOS
We do not have the `com.apple.developer.networking.multicast` entitlement and are unable to obtain it for non-technical reasons.
2025-09-23 17:22:02 +08:00
世界 41efd5078d Remove use of ldflags -checklinkname=0 on darwin 2025-09-23 17:22:02 +08:00
世界 3d251a9ede Fix local DNS server on darwin
We mistakenly believed that `libresolv`'s `search` function worked correctly in NetworkExtension, but it seems only `getaddrinfo` does.

This commit changes the behavior of the `local` DNS server in NetworkExtension to prefer DHCP, falling back to `getaddrinfo` if DHCP servers are unavailable.

It's worth noting that `prefer_go` does not disable DHCP since it respects Dial Fields, but `getaddrinfo` does the opposite. The new behavior only applies to NetworkExtension, not to all scenarios (primarily command-line binaries) as it did previously.

In addition, this commit also improves the DHCP DNS server to use the same robust query logic as `local`.
2025-09-23 17:22:02 +08:00
世界 4de8e686dd Fix legacy DNS config 2025-09-23 17:22:02 +08:00
世界 7260bebb69 Fix rule-set format 2025-09-23 17:22:02 +08:00
世界 52351d0d7d documentation: Remove outdated icons 2025-09-23 17:22:01 +08:00
世界 7277fa7237 documentation: Improve local DNS server 2025-09-23 17:22:01 +08:00
世界 c4a5aad54e Use libresolv in local DNS server on darwin 2025-09-23 17:22:01 +08:00
世界 5346c75cb3 Use resolved in local DNS server if available 2025-09-23 17:22:01 +08:00
xchacha20-poly1305 20eb16376e Fix rule set version 2025-09-23 17:22:00 +08:00
世界 ed03e4bc69 documentation: Add preferred_by route rule item 2025-09-23 17:22:00 +08:00
世界 4f230c87fb Add preferred_by route rule item 2025-09-23 17:22:00 +08:00
世界 a8d406a739 documentation: Add interface address rule items 2025-09-23 17:22:00 +08:00
世界 e2aa6ed126 Add interface address rule items 2025-09-23 17:22:00 +08:00
neletor b82cbb0012 Add support for ech retry configs 2025-09-23 17:22:00 +08:00
Zephyruso 874f0e665e Add /dns/flush-clash meta api 2025-09-23 17:21:59 +08:00
世界 d9d7f7880d Pin gofumpt and golangci-lint versions
As we don't want to remove naked returns
2025-09-23 16:33:42 +08:00
世界 a031aaf2c0 Do not reset network on sleep or wake 2025-09-23 16:17:44 +08:00
世界 4bca951773 Fix adguard matcher 2025-09-23 16:12:29 +08:00
世界 140735dbde Fix websocket log handling 2025-09-23 16:12:29 +08:00
世界 714a68bba1 Update .gitignore 2025-09-23 16:12:29 +08:00
世界 573c6179ab Bump version v1.12.8 2025-09-13 13:16:13 +08:00
世界 510bf05e36 Fix UDP exchange for local/dhcp DNS servers 2025-09-13 12:26:48 +08:00
世界 ae852e0be4 Bump version v1.12.7 2025-09-13 03:09:10 +08:00
世界 1955002ed8 Do not cache DNS responses with empty answers 2025-09-13 03:04:08 +08:00
世界 44559fb7b9 Bump version 2025-09-13 00:07:57 +08:00
世界 0977c5cf73 release: Disable Apple platform CI builds, since `-allowProvisioningUpdates is broken by Apple 2025-09-13 00:07:57 +08:00
世界 07697bf931 release: Fix xcode build 2025-09-12 22:57:44 +08:00
世界 5d1d1a1456 Fix TCP exchange for local/dhcp DNS servers 2025-09-12 21:58:48 +08:00
世界 146383499e Fix race codes 2025-09-12 21:58:48 +08:00
世界 e81a76fdf9 Fix DNS exchange 2025-09-12 18:05:02 +08:00
世界 de13137418 Fix auto redirect 2025-09-12 11:04:12 +08:00
世界 e42b818c2a Fix dhcp fetch 2025-09-12 11:03:13 +08:00
世界 fcde0c94e0 Bump version v1.12.5 2025-09-10 22:57:24 +08:00
世界 1af83e997d Update Go to 1.25.1 2025-09-10 22:57:24 +08:00
世界 59ee7be72a Fix SyscallVectorisedPacketWriter 2025-09-10 22:46:41 +08:00
世界 c331ee3d5c Fix timeout check 2025-09-10 22:42:40 +08:00
世界 36babe4bef Fix hysteria2 handshake timeout 2025-09-09 18:03:18 +08:00
世界 c5f2cea802 Prevent panic when wintun dll fails to load 2025-09-09 14:49:00 +08:00
世界 8a200bf913 Fix auto redirect output 2025-09-09 14:29:40 +08:00
世界 f16468e74f Fix ipv6 tproxy listener 2025-09-09 14:16:40 +08:00
世界 79c0b9f51d Fix tls options ignored in mixed inbounds 2025-09-08 19:45:52 +08:00
世界 f98a3a4f65 Treat requests with OPT extra but no options as simple requests 2025-09-08 09:12:30 +08:00
世界 b14cecaeb2 Fix DNS packet size 2025-09-08 09:12:30 +08:00
世界 2594745ef8 Fix DNS client 2025-09-08 09:12:30 +08:00
世界 cc3041322e Fix DNS cache 2025-09-08 09:12:30 +08:00
世界 f352f84483 Fix read address 2025-09-05 15:16:14 +08:00
世界 cbf48e9b8c Fix multiple sniff 2025-09-03 20:09:05 +08:00
世界 0ef7e8eca2 Fix route.default_interface not taking effect 2025-09-02 18:00:02 +08:00
世界 1a18e43a88 Fix linux icmp routes 2025-09-02 17:55:48 +08:00