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
Skyxim
e1e1984d3e
feat: nameserver policy support multiple server
2023-02-03 21:40:05 +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
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
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
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
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
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
3e424dea7b
refactor: DoH use fragment setting params
2022-07-21 21:40:28 +08:00
Skyxim
59ab2083aa
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
Skyxim
d0268bb9a2
chore: 降低并发查询时IPv6等待
2022-05-28 09:58:45 +08:00
Skyxim
948700eed6
fix: 并发dns查询,由于ipv6阻塞导致某些情况下的网络不通
2022-05-21 00:34:15 +08:00
adlyq
efc7c82cac
feat: "!"(not) support for geosite
...
eg. GEOSITE,!CN,Proxy & dns.fallback-filter.geosite: ['!CN']
2022-05-15 13:16:45 +08:00
Skyxim
bbbe371ea9
fix: dns specified interface does not change
2022-04-28 22:40:06 +08:00
yaling888
4fd7d0f707
Chore: use generics as possible
2022-04-25 13:18:30 +08:00
Skyxim
81b5543b0d
feat: support tcp concurrent, Separate dialing and dns resolver ipv6
...
tcp-concurrent:true
2022-04-23 00:27:22 +08:00
yaling888
7ca1a03d73
Refactor: metadata use netip.Addr
2022-04-20 22:52:05 +08:00
yaling888
a6eb11ce18
Refactor: DomainTrie use generics
2022-04-12 18:45:47 +08:00
yaling888
673541e2a8
Refactor: lrucache use generics
2022-04-12 18:44:07 +08:00
MetaCubeX
81c5a65f23
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
yaling888
4502776513
Refactor: MainResolver
2022-03-28 00:44:13 +08:00
MetaCubeX
30f1b29257
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
MetaCubeX
609d69191a
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
yaling888
346d817dba
Chore: Merge branch 'ogn-dev' into with-tun
2022-03-16 20:16:30 +08:00
Dreamacro
6a661bff0c
Migration: go 1.18
2022-03-16 12:10:13 +08:00
yaling888
d876d6e74c
Feature: resolve ip with a proxy adapter
2022-02-23 02:38:50 +08:00
Mazeorz
900e852525
[test]
2021-11-17 16:03:47 +08:00
Dreamacro
81d5da51a3
Fix: unexpected proxy dial behavior on mapping mode
2021-10-18 21:08:27 +08:00
Dreamacro
f1cf7e9269
Style: use gofumpt for fmt
2021-10-10 23:44:09 +08:00
Dreamacro
b9d470cf79
Fix: dhcp client should request special interface
2021-10-05 13:31:19 +08:00
Kr328
a5b950a779
Feature: add dhcp type dns client ( #1509 )
2021-09-06 23:07:34 +08:00
Dreamacro
e0d3f926b7
Feature: add geoip-code option
2021-08-25 15:15:13 +08:00
Dreamacro
995aa7a8fc
Fix: remove ClientSessionCache and add NextProtos for vmess to fix #1468
2021-07-03 20:34:44 +08:00
Rusty Pen
0778591524
Feature: dns resolve domain through nameserver-policy ( #1406 )
2021-05-19 11:17:35 +08:00
Dreamacro
4ad9761b32
Fix: don't resolve AAAA record when ipv6 is false and use go dns resolver
2021-04-01 18:03:30 +08:00