Commit Graph

267 Commits

Author SHA1 Message Date
gVisor bot
b9dbd81038 Chore: skip cache acme challenge dns msg (#2469) 2022-12-22 13:30:23 +08:00
gVisor bot
ec0136af1b chore: rebuild relay 2022-12-19 21:34:07 +08:00
gVisor bot
f73cbb90a2 chore: split dns's dialContext and listenPacket 2022-12-13 12:38:46 +08:00
gVisor bot
b531a40791 chore: cleanup doh/doq's code 2022-12-13 11:23:34 +08:00
gVisor bot
52924804ef fix: fix bindIfaceToListenConfig() in windows force bind to an ipv4 address 2022-12-13 11:18:32 +08:00
gVisor bot
a6e88229d6 fix: let doh/dot server follow hosts and can remotely resolve itself ip 2022-12-07 20:01:44 +08:00
gVisor bot
b48387d9f4 chore: optimize DomainTrie for only one child 2022-11-30 19:42:05 +08:00
gVisor bot
537035ffa8 chore: decrease DomainTrie's memory use 2022-11-30 18:50:46 +08:00
gVisor bot
65b60a3468 chore: tuic add cubic,new_reno,bbr congestion_controller 2022-11-25 10:33:37 +08:00
gVisor bot
271ae04f1e fix: catch context.DeadlineExceeded too 2022-11-19 23:16:20 +08:00
gVisor bot
cc32f639ed fix: adjust log 2022-11-19 23:07:49 +08:00
gVisor bot
e3c162d833 fix: better error return 2022-11-19 23:06:27 +08:00
gVisor bot
60b6d68339 fix: better error check 2022-11-19 23:03:14 +08:00
gVisor bot
f26bc212e1 fix: DoH recreate the connection multiple times 2022-11-19 22:48:04 +08:00
gVisor bot
5841fa51b0 fix: rollback batchExchange's code 2022-11-19 10:35:45 +08:00
gVisor bot
28c2ae75e0 fix: DoH/DoQ doesn't use context 2022-11-19 10:31:50 +08:00
gVisor bot
c57f091db5 fix: doh use NewRequestWithContext and batchExchange don't wait cancel finish 2022-11-19 09:43:31 +08:00
gVisor bot
5fd2771740 fix: auto retry in exchangeWithoutCache 2022-11-19 08:51:00 +08:00
gVisor bot
d57e07d611 fix: reset timeout in exchangeWithoutCache's singleflight 2022-11-18 18:02:46 +08:00
gVisor bot
459d0ef522 fix: resolver's defer 2022-11-16 17:53:52 +08:00
gVisor bot
3e862bfe99 Merge commit '2a8e1778ad1d7b507e432f659407d76dffcaacb8' into Alpha 2022-11-14 20:17:52 +08:00
gVisor bot
d9f848ec02 fix: DoQ and HTTP/3 over proxy 2022-11-14 20:17:12 +08:00
gVisor bot
d955c2e016 chore: sync dns code 2022-11-12 21:31:07 +08:00
gVisor bot
722e8a6c27 Merge branch 'dev' of https://github.com/Dreamacro/clash into Alpha 2022-11-12 20:43:48 +08:00
gVisor bot
821e908e48 chore: better dns background fetch retrying 2022-11-12 18:29:19 +08:00
gVisor bot
71ab8298a2 chore: always pass context when resolve dns 2022-11-12 13:18:36 +08:00
gVisor bot
a6b0e094ee fix: cleanup import 2022-11-12 12:31:44 +08:00
gVisor bot
70c6e586ca Merge pull request #256 from Skimmle/Alpha
featrue: DoH and DoQ are implemented using AdGuardTeam/dnsProxy
2022-11-12 11:19:04 +08:00
gVisor bot
34ec07f589 featrue: DoH and DoQ are implemented using AdGuardTeam/dnsProxy, DoH support perfer and force http3 2022-11-12 11:14:51 +08:00
gVisor bot
d5d5dc2303 chore: remove AddrType on Metadata 2022-11-11 09:19:50 +08:00
gVisor bot
99a1561cd4 chore: trie.DomainTrie will not depend on zero value 2022-11-02 22:28:18 +08:00
gVisor bot
2022605546 feat: add ip-version param 2022-08-28 13:41:43 +08:00
gVisor bot
81dd0ed2db Chore: reduce dhcp dns client cost 2022-08-24 21:36:19 +08:00
gVisor bot
08f414e9c7 Chore: remove old cache implementation 2022-08-17 11:43:20 +08:00
gVisor bot
730f5b2d5f Feature: sync missing resolver logic from premium, but still net.IP on opensource 2022-08-13 13:07:35 +08:00
gVisor bot
44a1ae08ef Fix: ALPN should on DoH instead of DoT (#2232) 2022-07-25 12:41:22 +08:00
gVisor bot
21d44fa391 refactor: DoH use fragment setting params 2022-07-21 21:40:28 +08:00
gVisor bot
91af078580 fix: DoT-ALPN error 2022-07-21 13:57:06 +08:00
gVisor bot
ba67dc3dd9 chore: clean code 2022-07-20 17:15:19 +08:00
gVisor bot
95e3a765d4 chore: Adjust the falling logic 2022-07-16 19:52:51 +08:00
gVisor bot
6fc60edf75 chore: Increase idle timeout and add keep alive period 2022-07-15 21:57:50 +08:00
gVisor bot
c3035df5be fix: DoH retry HTTP/3 2022-07-15 21:54:57 +08:00
gVisor bot
0bab694233 fix: DoQ closes udp immediately. 2022-07-15 21:54:02 +08:00
gVisor bot
7c1630c92a feat: add fingerprint param 2022-07-11 13:42:28 +08:00
gVisor bot
27b5ecf3ab fix: skip-cert-verify not work 2022-07-11 12:37:27 +08:00
gVisor bot
91e1649822 feat: add fingerprint for tls verify 2022-07-10 20:44:24 +08:00
gVisor bot
71afe64a8e chore: upgrade dependencies for hysteria 2022-07-07 12:49:52 +08:00
gVisor bot
d8d3466de5 fix: h3 of doh fall back logic 2022-07-06 21:25:25 +08:00
gVisor bot
db4fb69b10 refactor: h3 for doh 2022-07-06 20:53:34 +08:00
gVisor bot
1fc9e0be99 fix: close idle connections 2022-07-04 20:38:07 +08:00
gVisor bot
dd66f8826c fix: close transport with doh of h3 2022-07-03 23:01:49 +08:00
gVisor bot
12338f285b feat: try h3 connect DOH, failed will fall back h2; turn on with dns.prefer-h3: true 2022-07-03 21:59:47 +08:00
gVisor bot
bb2b64ba42 chore: dns interface name 2022-06-25 09:16:51 +08:00
gVisor bot
0c2014bb40 fix: disable doq skip verify cert 2022-06-25 09:16:49 +08:00
gVisor bot
34f46ac3a9 chore: delete DOQ meaningless ALPN 2022-06-12 23:17:26 +08:00
gVisor bot
b075ae1a3c fix: DOQ blocked dns return result because DOQ goroutine leak 2022-06-12 21:41:01 +08:00
gVisor bot
40c33e8fce chore: doq default port change to 853, ALPN use doq 2022-06-12 17:53:11 +08:00
gVisor bot
1b9a952510 fix: leak dns when domain in hosts list 2022-06-10 14:29:19 +08:00
gVisor bot
0fcb82af0e fix: doq maybe crash when use adapter 2022-06-06 21:45:08 +08:00
gVisor bot
cc41c30b09 chore: 调整dns interface与adapter部分 2022-06-05 13:37:00 +08:00
gVisor bot
7b40a2bd06 chore: mix the proxy adapter and interface to dns client 2022-06-04 21:18:49 +08:00
gVisor bot
739502ae30 refactor: 添加no_gvisor 编译tag, 剔除gvisor stack支持, 方便在arm设备上debug 2022-06-03 20:07:30 +08:00
gVisor bot
9ccc89ad95 chore: 添加tag no_doq 编译不含doq版本, 仅减少1.5MB(macOS-arm64) 2022-06-03 18:12:06 +08:00
gVisor bot
bbf0f1af4b Feature: can set custom interface for dns nameserver (#2126) 2022-06-01 10:50:54 +08:00
gVisor bot
39b9ee9462 chore: 降低并发查询时IPv6等待 2022-05-28 09:58:45 +08:00
gVisor bot
98ca305a54 fix: 并发dns查询,由于ipv6阻塞导致某些情况下的网络不通 2022-05-21 00:34:15 +08:00
gVisor bot
109e4b25cc fix: doq过代理错误 2022-05-17 21:30:54 +08:00
gVisor bot
4a828089b4 chore: debug log print dns result 2022-05-17 18:21:18 +08:00
gVisor bot
02d30883b6 feat: "!"(not) support for geosite
eg. GEOSITE,!CN,Proxy & dns.fallback-filter.geosite: ['!CN']
2022-05-15 13:16:45 +08:00
gVisor bot
4464d486fb fix: tun dns 2022-05-02 14:21:37 +08:00
gVisor bot
e758c464de chore: doq parameters 2022-05-02 05:01:07 +08:00
gVisor bot
b6efac8d79 refactor: remove dns and tun relationship, the enabled of dns module should be decided by user 2022-05-01 09:41:27 +08:00
gVisor bot
8fa6b3024f fix: dhcp ifacename type 2022-04-28 23:44:37 +08:00
gVisor bot
683198dcfe fix: dns specified interface does not change 2022-04-28 22:40:06 +08:00
gVisor bot
fe1099b0c5 refactor: doq dialer 2022-04-28 22:21:48 +08:00
gVisor bot
ad67a1c34c Chore: use generics as possible 2022-04-25 13:18:30 +08:00
gVisor bot
532ec82a08 feat: support tcp concurrent, Separate dialing and dns resolver ipv6
tcp-concurrent:true
2022-04-23 00:27:22 +08:00
gVisor bot
e2dbbb7cfe Refactor: metadata use netip.Addr 2022-04-20 22:52:05 +08:00
gVisor bot
915f40e71b Chore: IpToAddr 2022-04-20 22:09:16 +08:00
gVisor bot
caf271a669 Chore: fix typo 2022-04-19 22:38:20 +08:00
gVisor bot
66503d64e3 Chore: persistence fakeip pool state 2022-04-19 22:37:47 +08:00
gVisor bot
f4500524e4 chore: update dependencies 2022-04-13 02:32:55 +08:00
gVisor bot
bc33cd5630 Refactor: fakeip pool use netip.Prefix, supports ipv6 range 2022-04-12 20:32:08 +08:00
gVisor bot
950e638222 Chore: fix typos 2022-04-12 19:08:13 +08:00
gVisor bot
89d75e59d1 Refactor: DomainTrie use generics 2022-04-12 18:45:47 +08:00
gVisor bot
b1cf4dc1a2 Refactor: lrucache use generics 2022-04-12 18:44:07 +08:00
gVisor bot
0d1e4405da Merge remote-tracking branch 'Plus/with-tun' into Alpha 2022-04-02 20:48:11 +08:00
gVisor bot
ee3f94425e feat: 添加tls sni 嗅探
# Conflicts:
#	tunnel/statistic/tracker.go
#	tunnel/tunnel.go
2022-03-31 21:27:25 +08:00
gVisor bot
1c4e024030 Chore: revert "Feature: add tls SNI sniffing (#68)"
This reverts commit 24ce6622a2.
2022-03-31 21:20:46 +08:00
gVisor bot
016d88e5ea Feature: add tls SNI sniffing (#68) 2022-03-31 19:34:40 +08:00
gVisor bot
05125430dd Merge remote-tracking branch 'Pro-Plus/with-tun' into Alpha
# Conflicts:
#	README.md
#	adapter/outbound/trojan.go
#	adapter/outbound/vless.go
#	transport/trojan/trojan.go
2022-03-30 13:15:45 +08:00
gVisor bot
67d04485ca Refactor: MainResolver 2022-03-28 00:44:13 +08:00
gVisor bot
a52743bd28 [SKIP CI]
Merge remote-tracking branch 'Pro-Plus/with-tun' into Alpha

# Conflicts:
#	README.md
#	hub/route/server.go
2022-03-23 13:23:34 +08:00
gVisor bot
c38ae18a59 Feature: flush fakeip pool 2022-03-23 01:05:43 +08:00
gVisor bot
db31cfbd7f Merge remote-tracking branch 'yaling888/with-tun' into Alpha
# Conflicts:
#	.github/workflows/codeql-analysis.yml
#	.github/workflows/linter.yml
#	.github/workflows/release.yml
#	Makefile
#	README.md
#	adapter/outbound/vless.go
#	component/geodata/memconservative/cache.go
#	component/geodata/router/condition.go
#	component/geodata/router/condition_geoip.go
#	component/geodata/standard/standard.go
#	component/geodata/utils.go
#	config/config.go
#	config/initial.go
#	constant/metadata.go
#	constant/path.go
#	constant/rule.go
#	constant/rule_extra.go
#	dns/client.go
#	dns/filters.go
#	dns/resolver.go
#	go.mod
#	go.sum
#	hub/executor/executor.go
#	hub/route/configs.go
#	listener/listener.go
#	listener/tproxy/tproxy_linux_iptables.go
#	listener/tun/dev/dev.go
#	listener/tun/dev/dev_darwin.go
#	listener/tun/dev/dev_linux.go
#	listener/tun/dev/dev_windows.go
#	listener/tun/dev/wintun/config.go
#	listener/tun/dev/wintun/dll_windows.go
#	listener/tun/dev/wintun/session_windows.go
#	listener/tun/dev/wintun/wintun_windows.go
#	listener/tun/ipstack/commons/dns.go
#	listener/tun/ipstack/gvisor/tun.go
#	listener/tun/ipstack/gvisor/tundns.go
#	listener/tun/ipstack/gvisor/utils.go
#	listener/tun/ipstack/stack_adapter.go
#	listener/tun/ipstack/system/dns.go
#	listener/tun/ipstack/system/tcp.go
#	listener/tun/ipstack/system/tun.go
#	listener/tun/tun_adapter.go
#	main.go
#	rule/common/base.go
#	rule/common/domain.go
#	rule/common/domain_keyword.go
#	rule/common/domain_suffix.go
#	rule/common/final.go
#	rule/common/geoip.go
#	rule/common/geosite.go
#	rule/common/ipcidr.go
#	rule/common/port.go
#	rule/parser.go
#	rule/process.go
#	test/go.mod
#	test/go.sum
#	transport/vless/xtls.go
#	tunnel/tunnel.go
2022-03-17 17:41:02 +08:00
gVisor bot
50ab57c72e Merge remote-tracking branch 'clash/dev' into Alpha
# Conflicts:
#	.github/workflows/docker.yml
#	adapter/outboundgroup/fallback.go
#	adapter/outboundgroup/loadbalance.go
#	adapter/outboundgroup/relay.go
#	adapter/outboundgroup/selector.go
#	adapter/outboundgroup/urltest.go
#	config/config.go
#	go.mod
#	go.sum
#	main.go
#	test/go.mod
#	test/go.sum
2022-03-17 01:41:51 +08:00
gVisor bot
446fd99436 Chore: Merge branch 'ogn-dev' into with-tun 2022-03-16 20:16:30 +08:00
gVisor bot
01d7a43793 [build test] 2022-03-16 17:33:08 +08:00
gVisor bot
907c68c9cb Migration: go 1.18 2022-03-16 12:10:13 +08:00
gVisor bot
40381afa05 [build test] 2022-03-16 00:43:08 +08:00