Commit graph

99 commits

Author SHA1 Message Date
gVisor bot
9fdfc06f6e chore: cleanup error using of dialer.DefaultInterface 2023-10-26 09:07:49 +08:00
gVisor bot
494093ca99 chore: code cleanup 2023-10-25 18:07:45 +08:00
gVisor bot
bf2c62958e fix: DNS NCACHE TTL and OPT RRs (#2900)
* Fix: DNS NCACHE TTL and OPT RRs

1. DNS NCACHE was not correctly implemented.
2. OPT RRs must not be cached or forwarded.

Closes #2889.
2023-10-16 09:21:06 +08:00
gVisor bot
fbce316b14 chore: better atomic using 2023-10-10 21:28:46 +08:00
gVisor bot
df57d49d8d Fix: should check all ips need to fallback (#2915) 2023-09-29 13:42:22 +08:00
gVisor bot
8a3231205a fix: caceh dns result 2023-09-16 12:30:11 +08:00
gVisor bot
07d75d52e6 chore: Disable cache for RCode client 2023-06-11 23:01:51 +08:00
gVisor bot
ea5a231145 chore: Something update from clash :) (#606) 2023-06-06 09:45:05 +08:00
gVisor bot
190014aa1d chore: using sync/atomic replace uber/atomic 2023-04-22 15:37:57 +08:00
gVisor bot
e88a77202d chore: resolver priority return TypeA in ResolveIP (not effected LookupIP) 2023-04-12 22:06:21 +08:00
gVisor bot
e604ec6bf8 chore: wireguard dns can work with domain-based server 2023-04-11 14:10:57 +08:00
gVisor bot
72447a529d feat: wireguard add remote-dns-resolve and dns settings 2023-04-11 10:29:55 +08:00
gVisor bot
96461ab557 feat: nameserver-policy support use rule-providers and reduce domain-set memory 2023-04-01 11:53:39 +08:00
gVisor bot
26ed6eaf69 chore: proxy-server-nameserver does not follow the nameserver-policy 2023-03-23 12:58:59 +08:00
gVisor bot
e5eab112d0 feta: add hosts support domain and mulitple ip (#439)
* feat: host support domain and multiple ips

* chore: append local address via `clash`

* chore: update hosts demo

* chore: unified parse mixed string and array

* fix: flatten cname

* chore: adjust logic

* chore: reuse code

* chore: use cname in tunnel

* chore: try use domain mapping when normal dns

* chore: format code
2023-03-12 15:00:59 +08:00
gVisor bot
7ef83f5131 chore: exposure ipv6 wait time 2023-03-10 23:38:16 +08:00
gVisor bot
a5cf2ce0df chore: use fastrand to replace math/rand 2023-03-06 18:10:14 +08:00
gVisor bot
c75d75c982 chore: combine workflows 2023-02-19 01:23:06 +08:00
gVisor bot
4055f72f48 feat: nameserver policy support multiple server 2023-02-03 21:40:05 +08:00
gVisor bot
c348b6ae70 chore: better dns log 2023-01-28 22:33:03 +08:00
gVisor bot
5715ae8c5f chore: adjust keyword for geosite-based nameserver policy 2023-01-28 00:19:58 +08:00
gVisor bot
0bf0750d50 feature: geosite-based nameserver policy 2023-01-27 23:40:53 +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
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
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
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
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
21d44fa391 refactor: DoH use fragment setting params 2022-07-21 21:40:28 +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
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
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
683198dcfe fix: dns specified interface does not change 2022-04-28 22:40:06 +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
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
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