wwqgtxx
55f626424f
chore: better dns batchExchange
2023-10-25 20:16:44 +08:00
wwqgtxx
431d52f250
chore: system resolver can autoupdate
2023-10-25 19:21:20 +08:00
wwqgtxx
c1f24d8f0e
chore: code cleanup
2023-10-25 18:07:45 +08:00
wwqgtxx
3564e96a00
chore: share some code
2023-10-23 16:45:22 +08:00
Jiahao Lu
81bbbe4eec
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
wwqgtxx
7ed25ddc74
chore: better atomic using
2023-10-10 21:28:46 +08:00
yaling888
5f6de610e1
Fix: should check all ips need to fallback ( #2915 )
2023-09-29 13:42:22 +08:00
wwqgtxx
bf619d8586
fix: socks5 udp not working on loopback
2023-09-22 23:33:24 +08:00
wwqgtxx
d48f9c2a6c
chore: rebuild ca parsing
2023-09-22 14:45:34 +08:00
wwqgtxx
42b85de83e
chore: Restore go1.20 support
2023-09-21 08:29:28 +08:00
Larvan2
6a5a94f48f
chore: DNS cache policy follow upstream
2023-09-17 17:18:35 +08:00
Skyxim
2d3b9364bf
fix: caceh dns result
2023-09-16 12:30:11 +08:00
wwqgtxx
e2e0fd4eba
chore: using uint16 for ports in Metadata
2023-08-09 13:51:02 +08:00
YuSaki丶Kanade
b0fed73236
Fix: mapping dns should not stale ( #675 )
...
* Fix: mapping dns should not stale
* Update enhancer.go
2023-08-01 17:30:57 +08:00
H1JK
b0e76ec791
feat: Add Meta-geoip V0 database support
2023-07-17 10:33:20 +08:00
H1JK
081e94c738
feat: Add sing-geoip database support
2023-07-14 22:28:24 +08:00
H1JK
492a731ec1
fix: DNS cache
2023-07-14 09:55:43 +08:00
wwqgtxx
8f1475d5d0
chore: update to go1.21rc2, drop support for go1.19
2023-07-02 09:59:18 +08:00
wwqgtxx
db6b2b7702
chore: better resolv.conf parsing
2023-06-28 09:17:54 +08:00
Skyxim
183f2d974c
fix: dns concurrent not work
2023-06-12 18:42:46 +08:00
H1JK
54337ecdf3
chore: Disable cache for RCode client
2023-06-11 23:01:51 +08:00
H1JK
c7de0e0253
feat: Add RCode DNS client
2023-06-11 23:01:45 +08:00
タイムライン
dafecebdc0
chore: Something update from clash :) ( #606 )
2023-06-06 09:45:05 +08:00
wwqgtxx
2c44b4e170
chore: update quic-go to 0.35.1
2023-06-03 16:45:35 +08:00
wwqgtxx
7fa3d3aa0b
chore: cleanup system dns code
2023-06-01 12:36:53 +08:00
H1JK
969c235490
chore: Remove default DNS in system resolver
2023-05-01 12:41:36 +08:00
Larvan2
94f990da31
feat: support system dns for windows
2023-05-01 00:46:57 +08:00
sleshep
d6931ec491
feat: support system dns
2023-04-30 23:59:54 +08:00
wwqgtxx
40da1911d9
chore: using sync/atomic replace uber/atomic
2023-04-22 15:37:57 +08:00
wwqgtxx
cd42e9832c
chore: resolver priority return TypeA in ResolveIP (not effected LookupIP)
2023-04-12 22:06:21 +08:00
wwqgtxx
17922dc857
chore: proxyDialer first using old function to let mux work
2023-04-12 11:09:31 +08:00
wwqgtxx
90f95d7c78
chore: wireguard dns can work with domain-based server
2023-04-11 14:10:57 +08:00
wwqgtxx
ab3fce29ab
feat: wireguard add remote-dns-resolve
and dns
settings
2023-04-11 10:29:55 +08:00
Skyxim
cfd03a99c2
feat: nameserver-policy
support use rule-providers and reduce domain-set memory
2023-04-01 11:53:39 +08:00
wwqgtxx
7e10d78d53
chore: share the same geodata in different rule
2023-03-23 18:35:37 +08:00
Skyxim
5737fbc23c
chore: proxy-server-nameserver
does not follow the nameserver-policy
2023-03-23 12:58:59 +08:00
metacubex
9316c1293e
fix: geosite of nameserver-policy cannot be loaded correctly
2023-03-18 22:33:39 +08:00
Skyxim
7f588935ea
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
Skyxim
07f3cd2ae5
chore: exposure ipv6 wait time
2023-03-10 23:38:16 +08:00
wwqgtxx
6a97ab9ecb
chore: use fastrand to replace math/rand
2023-03-06 18:10:14 +08:00
wwqgtxx
527fc2790b
chore: combine workflows
2023-02-19 01:23:06 +08:00
kunish
d6ff5f7d96
style: run go fmt on every .go file ( #392 )
2023-02-17 16:31:37 +08:00
Skyxim
28c7de6185
fix: avoid modifying the request message id
2023-02-14 21:09:37 +08:00
Skyxim
e1e1984d3e
feat: nameserver policy support multiple server
2023-02-03 21:40:05 +08:00
Skyxim
32c53b9584
chore: dns log error
2023-01-29 11:03:39 +08:00
Skyxim
e52d599326
chore: better dns log
2023-01-28 22:33:03 +08:00
metacubex
596bf32caa
chore: adjust keyword for geosite-based nameserver policy
2023-01-28 00:19:58 +08:00
i40e
02684a868f
feature: geosite-based nameserver policy
2023-01-27 23:40:53 +08:00
Skyxim
b6b6413d04
refactor: replace experimental.fingerprints with custom-certificates and Change the fingerprint verification logic to SSL pinning
2023-01-14 21:08:06 +08:00
3andero
804cff8c55
fix: skip-cert-verify is true by default ( #333 )
...
* fix: skip-cert-verify is true by default
* fix: format
* fix: typo
Co-authored-by: 3andero <3andero@github.com>
Co-authored-by: Hellojack <106379370+H1JK@users.noreply.github.com>
2023-01-13 09:55:01 +08:00
wwqgtxx
0c9a23a53c
fix: dns cache index out of range
2023-01-11 09:54:07 +08:00
wwqgtxx
7a64c432b1
Merge branch 'dev' of https://github.com/Dreamacro/clash into Alpha
2023-01-01 13:03:30 +08:00
ALICE
4a57917783
Chore: skip cache acme challenge dns msg ( #2469 )
2022-12-22 13:30:23 +08:00
wwqgtxx
7496d9c114
chore: rebuild relay
2022-12-19 21:34:07 +08:00
wwqgtxx
17cbbb5bf0
chore: split dns's dialContext and listenPacket
2022-12-13 12:38:46 +08:00
wwqgtxx
b3b5f17e03
chore: cleanup doh/doq's code
2022-12-13 11:23:34 +08:00
wwqgtxx
88acf8e098
fix: fix bindIfaceToListenConfig() in windows force bind to an ipv4 address
2022-12-13 11:18:32 +08:00
wwqgtxx
a6f7e1472b
fix: let doh/dot server follow hosts and can remotely resolve itself ip
2022-12-07 20:01:44 +08:00
wwqgtxx
df8e129fc6
chore: optimize DomainTrie for only one child
2022-11-30 19:42:05 +08:00
wwqgtxx
84caee94af
chore: decrease DomainTrie's memory use
2022-11-30 18:50:46 +08:00
wwqgtxx
c89b1f0e96
chore: tuic add cubic,new_reno,bbr congestion_controller
2022-11-25 10:33:37 +08:00
wwqgtxx
18d62c4a17
fix: catch context.DeadlineExceeded too
2022-11-19 23:16:20 +08:00
Skyxim
02830e0ad6
fix: adjust log
2022-11-19 23:07:49 +08:00
wwqgtxx
6d89bddf29
fix: better error return
2022-11-19 23:06:27 +08:00
wwqgtxx
dbbd499349
fix: better error check
2022-11-19 23:03:14 +08:00
Skyxim
d3562ce394
fix: DoH recreate the connection multiple times
2022-11-19 22:48:04 +08:00
wwqgtxx
4ea4221380
fix: rollback batchExchange's code
2022-11-19 10:35:45 +08:00
Skyxim
b8b3c9ef9f
fix: DoH/DoQ doesn't use context
2022-11-19 10:31:50 +08:00
wwqgtxx
f00dc69bb6
fix: doh use NewRequestWithContext and batchExchange don't wait cancel finish
2022-11-19 09:43:31 +08:00
wwqgtxx
23f286f24e
fix: auto retry in exchangeWithoutCache
2022-11-19 08:51:00 +08:00
wwqgtxx
8b848b62bb
fix: reset timeout in exchangeWithoutCache's singleflight
2022-11-18 18:02:46 +08:00
wwqgtxx
994e85425f
fix: resolver's defer
2022-11-16 17:53:52 +08:00
Skimmle
586dec5ba3
Merge commit '2a8e1778ad1d7b507e432f659407d76dffcaacb8' into Alpha
2022-11-14 20:17:52 +08:00
Skimmle
6db7c800d5
fix: DoQ and HTTP/3 over proxy
2022-11-14 20:17:12 +08:00
wwqgtxx
a3425c0e78
chore: sync dns code
2022-11-12 21:31:07 +08:00
wwqgtxx
dc3e144b6a
Merge branch 'dev' of https://github.com/Dreamacro/clash into Alpha
2022-11-12 20:43:48 +08:00
wwqgtxx
75d339392b
chore: better dns background fetch retrying
2022-11-12 18:29:19 +08:00
wwqgtxx
901a47318d
chore: always pass context when resolve dns
2022-11-12 13:18:36 +08:00
wwqgtxx
3321ac95ca
fix: cleanup import
2022-11-12 12:31:44 +08:00
cubemaze
d78b2b1cfb
Merge pull request #256 from Skimmle/Alpha
...
featrue: DoH and DoQ are implemented using AdGuardTeam/dnsProxy
2022-11-12 11:19:04 +08:00
Skimmle
3e20912339
featrue: DoH and DoQ are implemented using AdGuardTeam/dnsProxy, DoH support perfer and force http3
2022-11-12 11:14:51 +08:00
wwqgtxx
6dadc2357a
chore: remove AddrType on Metadata
2022-11-11 09:19:50 +08:00
wwqgtxx
22fb219ad8
chore: trie.DomainTrie will not depend on zero value
2022-11-02 22:28:18 +08:00
Skyxim
99effb051b
feat: add ip-version param
2022-08-28 13:41:43 +08:00
Dreamacro
a3281712e2
Chore: reduce dhcp dns client cost
2022-08-24 21:36:19 +08:00
Dreamacro
6e058f8581
Chore: remove old cache implementation
2022-08-17 11:43:20 +08:00
Dreamacro
3946d771e5
Feature: sync missing resolver logic from premium, but still net.IP on opensource
2022-08-13 13:07:35 +08:00
Skyxim
93400cf44d
Fix: ALPN should on DoH instead of DoT ( #2232 )
2022-07-25 12:41:22 +08:00
Skyxim
3e424dea7b
refactor: DoH use fragment setting params
2022-07-21 21:40:28 +08:00
Skyxim
b0fd50453a
fix: DoT-ALPN error
2022-07-21 13:57:06 +08:00
Skyxim
6e7002dbd3
chore: clean code
2022-07-20 17:15:19 +08:00
Skyxim
6b636c051a
chore: Adjust the falling logic
2022-07-16 19:52:51 +08:00
Skyxim
10f8f5dd7b
chore: Increase idle timeout and add keep alive period
2022-07-15 21:57:50 +08:00
Skyxim
4e272ff066
fix: DoH retry HTTP/3
2022-07-15 21:54:57 +08:00
Skyxim
a73e690172
fix: DoQ closes udp immediately.
2022-07-15 21:54:02 +08:00
Skyxim
a8ce283727
feat: add fingerprint param
2022-07-11 13:42:28 +08:00
Skyxim
ab8e9e7d7a
fix: skip-cert-verify not work
2022-07-11 12:37:27 +08:00
Skyxim
fef9f95e65
feat: add fingerprint for tls verify
2022-07-10 20:44:24 +08:00
Skyxim
60e1947ed2
chore: upgrade dependencies for hysteria
2022-07-07 12:49:52 +08:00
Skyxim
0a76876764
fix: h3 of doh fall back logic
2022-07-06 21:25:25 +08:00