Compare commits

..

78 Commits

Author SHA1 Message Date
世界
9d268c1a44
documentation: Bump version 2025-04-29 20:47:42 +08:00
世界
0e172d812f
documentation: Fix anytls padding scheme description 2025-04-29 20:47:29 +08:00
安容
c945565c16
Report invalid DNS address early 2025-04-29 20:47:28 +08:00
世界
5000eb49db
Fix wireguard listen_port 2025-04-29 20:47:28 +08:00
世界
6fffc3858b
clash-api: Add more meta api 2025-04-29 20:47:28 +08:00
世界
f955137ca2
Fix DNS lookup 2025-04-29 20:47:27 +08:00
世界
d296e1867b
Fix tailscale sending unexpected stuff 2025-04-29 20:47:27 +08:00
世界
73fb93815c
Fix fetch ECH configs 2025-04-29 20:47:27 +08:00
reletor
f244eb0f90
documentation: Minor fixes 2025-04-29 20:47:27 +08:00
caelansar
9818cf3474
Fix callback deletion in UDP transport 2025-04-29 20:47:26 +08:00
世界
21a87c424c
documentation: Try to make the play review happy 2025-04-29 20:47:26 +08:00
世界
43a3afc5e2
Fix missing handling of legacy domain_strategy options 2025-04-29 20:47:25 +08:00
世界
14c22c535f
Improve local DNS server 2025-04-29 20:47:25 +08:00
anytls
ac23ca34d0
Update anytls
Co-authored-by: anytls <anytls>
2025-04-29 20:47:25 +08:00
世界
d2e09af191
Fix DNS dialer 2025-04-29 20:47:25 +08:00
世界
81fde123dd
release: Skip override version for iOS 2025-04-29 20:47:25 +08:00
iikira
b7927c95b3
Fix UDP DNS server crash
Signed-off-by: iikira <i2@mail.iikira.com>
2025-04-29 20:47:24 +08:00
ReleTor
141e3a1549
Fix fetch ECH configs 2025-04-29 20:47:24 +08:00
世界
a4ebb46550
release: Update Go to 1.24.2 2025-04-29 20:47:24 +08:00
世界
74bc77f8bd
Allow direct outbounds without domain_resolver 2025-04-29 20:47:24 +08:00
世界
ab94903321
Fix Tailscale dialer 2025-04-29 20:47:24 +08:00
dyhkwong
6b2e3e0d0c
Fix DNS over QUIC stream close 2025-04-29 20:47:23 +08:00
anytls
ccba9aa37b
Update anytls
Co-authored-by: anytls <anytls>
2025-04-29 20:47:23 +08:00
Rambling2076
af2503f9ba
Fix missing with_tailscale in Dockerfile
Signed-off-by: Rambling2076 <Rambling2076@proton.me>
2025-04-29 20:47:23 +08:00
世界
c1716ac9f1
Fail when default DNS server not found 2025-04-29 20:47:23 +08:00
世界
855d2e8c52
Update gVisor to 20250319.0 2025-04-29 20:47:22 +08:00
世界
792e4bd7aa
release: Do not build tailscale on iOS and tvOS 2025-04-29 20:47:22 +08:00
世界
fcc06a7535
Explicitly reject detour to empty direct outbounds 2025-04-29 20:47:21 +08:00
世界
d0e2c3a5d5
Add netns support 2025-04-29 20:47:21 +08:00
世界
c29bf7d101
Add wildcard name support for predefined records 2025-04-29 20:47:21 +08:00
世界
9d34837b9b
Remove map usage in options 2025-04-29 20:47:21 +08:00
世界
ddcd2011e1
Fix unhandled DNS loop 2025-04-29 20:47:20 +08:00
世界
0a16c5957d
Add wildcard-sni support for shadow-tls inbound 2025-04-29 20:47:20 +08:00
世界
d04a1b2f41
Fix Tailscale DNS 2025-04-29 20:47:19 +08:00
k9982874
e5ef90017f
Add ntp protocol sniffing 2025-04-29 20:47:19 +08:00
世界
ec205f200e
option: Fix marshal legacy DNS options 2025-04-29 20:47:19 +08:00
世界
0e9b8482ca
Make domain_resolver optional when only one DNS server is configured 2025-04-29 20:47:19 +08:00
世界
87e3e59aea
Fix DNS lookup context pollution 2025-04-29 20:47:18 +08:00
世界
0e3b8fca19
Fix http3 DNS server connecting to wrong address 2025-04-29 20:47:18 +08:00
Restia-Ashbell
9f2bd1e10a
documentation: Fix typo 2025-04-29 20:47:18 +08:00
anytls
649069c995
Update sing-anytls
Co-authored-by: anytls <anytls>
2025-04-29 20:47:17 +08:00
k9982874
dad7828d36
Fix hosts DNS server 2025-04-29 20:47:17 +08:00
世界
cc57ec65db
Fix UDP DNS server crash 2025-04-29 20:47:17 +08:00
世界
52177460f1
documentation: Fix missing ip_accept_any DNS rule option 2025-04-29 20:47:16 +08:00
世界
fe4fe157c0
Fix anytls dialer usage 2025-04-29 20:47:16 +08:00
世界
87aae98ecf
Move predefined DNS server to rule action 2025-04-29 20:47:16 +08:00
世界
3b851b9985
Fix domain resolver on direct outbound 2025-04-29 20:47:16 +08:00
Zephyruso
1ebfd0c874
Fix missing AnyTLS display name 2025-04-29 20:47:15 +08:00
anytls
8d4558d48d
Update sing-anytls
Co-authored-by: anytls <anytls>
2025-04-29 20:47:15 +08:00
Estel
825e99af6a
documentation: Fix typo
Signed-off-by: Estel <callmebedrockdigger@gmail.com>
2025-04-29 20:47:15 +08:00
TargetLocked
b70e735d1d
Fix parsing legacy DNS options 2025-04-29 20:47:15 +08:00
世界
6c6daa474e
Fix DNS fallback 2025-04-29 20:47:14 +08:00
世界
a3583e6961
documentation: Fix missing hosts DNS server 2025-04-29 20:47:14 +08:00
anytls
a727c9be8c
Add MinIdleSession option to AnyTLS outbound
Co-authored-by: anytls <anytls>
2025-04-29 20:47:14 +08:00
ReleTor
7175cda649
documentation: Minor fixes 2025-04-29 20:47:14 +08:00
libtry486
a418bab98b
documentation: Fix typo
fix typo

Signed-off-by: libtry486 <89328481+libtry486@users.noreply.github.com>
2025-04-29 20:47:13 +08:00
Alireza Ahmadi
45935d3052
Fix Outbound deadlock 2025-04-29 20:47:13 +08:00
世界
bab5255521
documentation: Fix AnyTLS doc 2025-04-29 20:47:12 +08:00
anytls
0e7c52bd23
Add AnyTLS protocol 2025-04-29 20:47:12 +08:00
世界
fde0f6bd3f
Migrate to stdlib ECH support 2025-04-29 20:47:11 +08:00
世界
e0aa35de8c
Add fallback local DNS server for iOS 2025-04-29 20:47:11 +08:00
世界
145e940796
Get darwin local DNS server from libresolv 2025-04-29 20:47:11 +08:00
世界
58a65b10dd
Improve resolve action 2025-04-29 20:47:11 +08:00
世界
003fb96753
Fix toolchain version 2025-04-29 20:47:11 +08:00
世界
a88d57a11d
Add back port hopping to hysteria 1 2025-04-29 20:47:10 +08:00
世界
05be3bcd34
Update dependencies 2025-04-29 20:47:10 +08:00
xchacha20-poly1305
892aba0ec8
Remove single quotes of raw Moziila certs 2025-04-29 20:47:09 +08:00
世界
a76a56c53b
Add Tailscale endpoint 2025-04-29 20:47:09 +08:00
世界
70441c885a
Build legacy binaries with latest Go 2025-04-29 20:47:08 +08:00
世界
a9931ce8e7
documentation: Remove outdated icons 2025-04-29 20:47:08 +08:00
世界
3deddde17d
documentation: Certificate store 2025-04-29 20:47:07 +08:00
世界
92a2156078
documentation: TLS fragment 2025-04-29 20:47:07 +08:00
世界
91ffd3c9e0
documentation: Outbound domain resolver 2025-04-29 20:47:07 +08:00
世界
0ff7a4a9c0
documentation: Refactor DNS 2025-04-29 20:47:07 +08:00
世界
1f7bce50bf
Add certificate store 2025-04-29 20:47:07 +08:00
世界
36205a49a3
Add TLS fragment support 2025-04-29 20:46:46 +08:00
世界
2d19a0c903
refactor: Outbound domain resolver 2025-04-29 20:45:58 +08:00
世界
88bef981ec
refactor: DNS 2025-04-29 20:45:51 +08:00
3 changed files with 9 additions and 24 deletions

View File

@ -232,17 +232,10 @@ func (c *Client) Exchange(ctx context.Context, transport adapter.DNSTransport, m
record.Header().Ttl = timeToLive
}
}
response.Id = messageId
if !disableCache {
c.storeCache(transport, question, response, timeToLive)
}
response.Id = messageId
requestEDNSOpt := message.IsEdns0()
responseEDNSOpt := response.IsEdns0()
if responseEDNSOpt != nil && (requestEDNSOpt == nil || requestEDNSOpt.Version() < responseEDNSOpt.Version()) {
response.Extra = common.Filter(response.Extra, func(it dns.RR) bool {
return it.Header().Rrtype != dns.TypeOPT
})
}
logExchangedResponse(c.logger, ctx, response, timeToLive)
return response, err
}

4
go.mod
View File

@ -27,14 +27,14 @@ require (
github.com/sagernet/quic-go v0.49.0-beta.1
github.com/sagernet/reality v0.0.0-20230406110435-ee17307e7691
github.com/sagernet/sing v0.6.8-0.20250429124449-59dfe1dbfdbf
github.com/sagernet/sing-mux v0.3.2
github.com/sagernet/sing-mux v0.3.1
github.com/sagernet/sing-quic v0.4.1-0.20250423030647-0eb05f373a76
github.com/sagernet/sing-shadowsocks v0.2.7
github.com/sagernet/sing-shadowsocks2 v0.2.0
github.com/sagernet/sing-shadowtls v0.2.1-0.20250316154757-6f9e732e5056
github.com/sagernet/sing-tun v0.6.6-0.20250428031943-0686f8c4f210
github.com/sagernet/sing-vmess v0.2.1
github.com/sagernet/smux v1.5.34-mod.1
github.com/sagernet/smux v0.0.0-20231208180855-7041f6ea79e7
github.com/sagernet/tailscale v1.80.3-mod.4
github.com/sagernet/utls v1.6.7
github.com/sagernet/wireguard-go v0.0.1-beta.7

20
go.sum
View File

@ -30,7 +30,6 @@ github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46t
github.com/cretz/bine v0.2.0 h1:8GiDRGlTgz+o8H9DSnsl+5MeBK4HsExxgl6WgzOCuZo=
github.com/cretz/bine v0.2.0/go.mod h1:WU4o9QR9wWp8AVKtTM1XD5vUHkEqnf2vVSo6dBqbetI=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM=
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/dblohm7/wingoes v0.0.0-20240119213807-a09d6be7affa h1:h8TfIT1xc8FWbwwpmHn1J5i43Y0uZP97GqasGCzSRJk=
@ -178,11 +177,11 @@ github.com/sagernet/quic-go v0.49.0-beta.1 h1:3LdoCzVVfYRibZns1tYWSIoB65fpTmrwy+
github.com/sagernet/quic-go v0.49.0-beta.1/go.mod h1:uesWD1Ihrldq1M3XtjuEvIUqi8WHNsRs71b3Lt1+p/U=
github.com/sagernet/reality v0.0.0-20230406110435-ee17307e7691 h1:5Th31OC6yj8byLGkEnIYp6grlXfo1QYUfiYFGjewIdc=
github.com/sagernet/reality v0.0.0-20230406110435-ee17307e7691/go.mod h1:B8lp4WkQ1PwNnrVMM6KyuFR20pU8jYBD+A4EhJovEXU=
github.com/sagernet/sing v0.6.7/go.mod h1:ARkL0gM13/Iv5VCZmci/NuoOlePoIsW0m7BWfln/Hak=
github.com/sagernet/sing v0.2.18/go.mod h1:OL6k2F0vHmEzXz2KW19qQzu172FDgSbUSODylighuVo=
github.com/sagernet/sing v0.6.8-0.20250429124449-59dfe1dbfdbf h1:WLlIJ2+Z4ZjQQAJlxYvASMIopFFk5aQBbq7fwIPS3u0=
github.com/sagernet/sing v0.6.8-0.20250429124449-59dfe1dbfdbf/go.mod h1:ARkL0gM13/Iv5VCZmci/NuoOlePoIsW0m7BWfln/Hak=
github.com/sagernet/sing-mux v0.3.2 h1:meZVFiiStvHThb/trcpAkCrmtJOuItG5Dzl1RRP5/NE=
github.com/sagernet/sing-mux v0.3.2/go.mod h1:pht8iFY4c9Xltj7rhVd208npkNaeCxzyXCgulDPLUDA=
github.com/sagernet/sing-mux v0.3.1 h1:kvCc8HyGAskDHDQ0yQvoTi/7J4cZPB/VJMsAM3MmdQI=
github.com/sagernet/sing-mux v0.3.1/go.mod h1:Mkdz8LnDstthz0HWuA/5foncnDIdcNN5KZ6AdJX+x78=
github.com/sagernet/sing-quic v0.4.1-0.20250423030647-0eb05f373a76 h1:iwpCX6H3nZEOGUGwx0q5azcgYOA9f6v9YssihXoRKHk=
github.com/sagernet/sing-quic v0.4.1-0.20250423030647-0eb05f373a76/go.mod h1:tqPa0/Wqa19MkkSlKVZZX5sHxtiDR9BROcn4ufcbVdY=
github.com/sagernet/sing-shadowsocks v0.2.7 h1:zaopR1tbHEw5Nk6FAkM05wCslV6ahVegEZaKMv9ipx8=
@ -195,8 +194,8 @@ github.com/sagernet/sing-tun v0.6.6-0.20250428031943-0686f8c4f210 h1:6H4BZaTqKI3
github.com/sagernet/sing-tun v0.6.6-0.20250428031943-0686f8c4f210/go.mod h1:fisFCbC4Vfb6HqQNcwPJi2CDK2bf0Xapyz3j3t4cnHE=
github.com/sagernet/sing-vmess v0.2.1 h1:6izHC2+B68aQCxTagki6eZZc+g5eh4dYwxOV5a2Lhug=
github.com/sagernet/sing-vmess v0.2.1/go.mod h1:jDAZ0A0St1zVRkyvhAPRySOFfhC+4SQtO5VYyeFotgA=
github.com/sagernet/smux v1.5.34-mod.1 h1:xZljMK3fVOX4HC+ND1N7eOiweqEa9bxRTKlliqe9DJE=
github.com/sagernet/smux v1.5.34-mod.1/go.mod h1:qI3fpNiLZmwrh83DmbJHX7sAsc2R/gbqdWw0/WzciU0=
github.com/sagernet/smux v0.0.0-20231208180855-7041f6ea79e7 h1:DImB4lELfQhplLTxeq2z31Fpv8CQqqrUwTbrIRumZqQ=
github.com/sagernet/smux v0.0.0-20231208180855-7041f6ea79e7/go.mod h1:FP9X2xjT/Az1EsG/orYYoC+5MojWnuI7hrffz8fGwwo=
github.com/sagernet/tailscale v1.80.3-mod.4 h1:9UgYq8m9mwX5dbTbueVxbRh+bq7AayxemJGM2PkJQnE=
github.com/sagernet/tailscale v1.80.3-mod.4/go.mod h1:EBxXsWu4OH2ELbQLq32WoBeIubG8KgDrg4/Oaxjs6lI=
github.com/sagernet/utls v1.6.7 h1:Ep3+aJ8FUGGta+II2IEVNUc3EDhaRCZINWkj/LloIA8=
@ -210,14 +209,7 @@ github.com/spf13/cobra v1.8.1/go.mod h1:wHxEcudfqmLYa8iTfL+OuZPbBZkmvliBWKIezN3k
github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA=
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
github.com/tailscale/certstore v0.1.1-0.20231202035212-d3fa0460f47e h1:PtWT87weP5LWHEY//SWsYkSO3RWRZo4OSWagh3YD2vQ=
@ -296,7 +288,7 @@ golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7w
golang.org/x/sys v0.0.0-20220817070843-5a390386f1f2/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/sys v0.14.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/sys v0.30.0 h1:QjkSwP/36a20jFYWkSue1YwXzLmsV5Gfq7Eiy72C1uc=
golang.org/x/sys v0.30.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=