Commit Graph
100 Commits
Author SHA1 Message Date
世界 44fafcef73 Fix resolve using resolved 2026-01-17 05:44:29 +08:00
世界 a5e09fcd43 documentation: Update behavior of local DNS server on darwin 2026-01-17 05:44:29 +08:00
世界 387b42c9c2 Remove use of ldflags -checklinkname=0 on darwin 2026-01-17 05:44:29 +08:00
世界 044eb728cb Fix legacy DNS config 2026-01-17 05:44:29 +08:00
世界 2be8a45f14 Fix rule-set format 2026-01-17 05:44:29 +08:00
世界 1336987756 documentation: Remove outdated icons 2026-01-17 05:44:29 +08:00
世界 e3473d3de0 documentation: Improve local DNS server 2026-01-17 05:44:28 +08:00
世界 bba92146b1 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.
2026-01-17 05:44:28 +08:00
世界 48f84b31d6 Improve 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`.
2026-01-17 05:44:28 +08:00
世界 1c846df903 Use resolved in local DNS server if available 2026-01-17 05:44:28 +08:00
世界 87eaf3ce6e documentation: Add preferred_by route rule item 2026-01-17 05:44:27 +08:00
世界 239e6ec701 Add preferred_by route rule item 2026-01-17 05:44:27 +08:00
世界 5be1887f92 documentation: Add interface address rule items 2026-01-17 05:44:27 +08:00
世界 65264afdf9 Add interface address rule items 2026-01-17 05:44:26 +08:00
世界 fecdbf20de Fix ECH retry support 2026-01-17 05:44:26 +08:00
世界 51ce402dbb Bump version 2026-01-17 05:10:56 +08:00
世界 8b404b5a4c Update Go to 1.25.6 2026-01-17 05:10:56 +08:00
世界 3ce94d50dd Update uTLS to v1.8.2 2026-01-17 04:54:18 +08:00
世界 29d56fca9c Update smux to v1.5.50 & Fix h2mux RST_STREAM on half-close 2026-01-17 04:17:14 +08:00
世界 ab18010ee1 Bump version 2026-01-12 20:38:21 +08:00
世界 e69c202c79 Fix logic issues with BBR impl 2026-01-12 20:34:04 +08:00
世界 0a812f2a46 Bump version 2026-01-07 15:13:35 +08:00
世界 6fdf27a701 Fix Tailscale endpoint using wrong source IP with advertise_routes 2026-01-04 22:14:54 +08:00
世界 f511ebc1d4 Fix lint errors 2026-01-02 19:17:53 +08:00
世界 84bbdc2eba Revert "Pin gofumpt and golangci-lint versions"
This reverts commit d9d7f7880d.
2026-01-02 19:14:13 +08:00
世界 568612fc70 Fix duplicate tag detection for empty tags
Closes https://github.com/SagerNet/sing-box/issues/3665
2026-01-02 19:14:13 +08:00
世界 d78828fd81 Fix quic sniffer 2026-01-02 19:14:13 +08:00
世界 f56d9ab945 Bump version 2025-12-25 14:47:10 +08:00
世界 86fabd6a22 Update Mozilla certificates 2025-12-25 14:42:18 +08:00
世界 24a1e7cee4 Ignore darwin IP_DONTFRAG error when not supported 2025-12-25 14:40:48 +08:00
世界 223dd8bb1a Fix TCP DNS response buffer 2025-12-22 13:51:00 +08:00
世界 68448de7d0 Fix missing RootPoolFromContext and TimeFuncFromContext in HTTP clients 2025-12-22 13:50:57 +08:00
世界 1ebff74c21 Fix DNS cache not working when domain strategy is set
The cache lookup was performed before rule matching, using the caller's
strategy (usually AsIS/0) instead of the resolved strategy. This caused
cache misses when ipv4_only was configured globally but the cache lookup
expected both A and AAAA records.

Remove LookupCache and ExchangeCache from Router, as the cache checks
inside client.Lookup and client.Exchange already handle caching correctly
after rule matching with the proper strategy and transport.
2025-12-21 16:59:10 +08:00
世界 f0cd3422c1 Bump version 2025-12-14 00:09:19 +08:00
世界 e385a98ced Update Go to 1.25.5 2025-12-13 20:11:29 +08:00
世界 670f32baee Fix naive inbound 2025-12-12 21:19:28 +08:00
世界 2747a00ba2 Fix tailscale destination 2025-12-01 15:02:04 +08:00
世界 48e76038d0 Update Go to 1.25.4 2025-11-16 09:53:10 +08:00
世界 6421252d44 release: Fix windows7 build 2025-11-16 09:09:34 +08:00
世界 216c4c8bd4 Fix adapter handler 2025-11-16 08:34:46 +08:00
世界 5841d410a1 ssm-api: Fix save cache 2025-11-04 11:00:43 +08:00
世界 54ed58499d Bump version 2025-10-27 18:04:24 +08:00
世界 b1bdc18c85 Fix socks response 2025-10-27 18:03:05 +08:00
世界 a38030cc0b Fix memory leak in hysteria2 2025-10-24 10:52:08 +08:00
世界 4626aa2cb0 Bump version 2025-10-21 21:39:28 +08:00
世界 5a40b673a4 Update dependencies 2025-10-21 21:39:28 +08:00
世界 541f63fee4 redirect: Fix compatibility with /product/bin/su 2025-10-21 21:27:15 +08:00
世界 5de6f4a14f Fix tailscale not enforcing NoLogsNoSupport 2025-10-16 22:30:08 +08:00
世界 5658830077 Fix trailing dot handling in local DNS transport 2025-10-16 21:43:12 +08:00
世界 0e50edc009 documentation: Add appreciate for Warp 2025-10-16 21:43:12 +08:00
世界 444f454810 Bump version 2025-10-14 23:43:36 +08:00
世界 d0e1fd6c7e Update Go to 1.25.3 2025-10-14 23:43:36 +08:00
世界 17b4d1e010 Update uTLS to v1.8.1 2025-10-14 23:40:19 +08:00
世界 06791470c9 Fix DNS reject panic 2025-10-14 23:40:19 +08:00
世界 ef14c8ca0e Disable TCP slow open for anytls
Fixes #3459
2025-10-14 23:40:19 +08:00
世界 36dc883c7c Fix DNS negative caching to comply with RFC 2308 2025-10-09 23:45:23 +08:00
世界 41b30c91d9 Improve HTTPS DNS transport 2025-10-09 23:45:23 +08:00
世界 0f767d5ce1 Update .gitignore 2025-10-07 13:37:11 +08:00
世界 328a6de797 Bump version 2025-10-05 17:58:21 +08:00
世界 9362d3cab3 Attempt to fix leak in quic-go 2025-10-01 11:59:17 +08:00
世界 ced2e39dbf Update dependencies 2025-10-01 11:55:33 +08:00
世界 cb7dba3eff release: Improve publish testflight 2025-10-01 10:22:44 +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 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 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 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
世界 6849288d6d Fix typo in TestSniffUQUICChrome115 2025-09-02 17:55:26 +08:00
世界 2edfed7d91 Improve DHCP DNS server 2025-09-02 17:55:26 +08:00
世界 30c069f5b7 Fix local DNS server on legacy windows 2025-09-02 17:55:26 +08:00
世界 649163cb7b Fix domain strategy not taking effect 2025-09-02 17:35:27 +08:00