chore: support connection reuse for DoT

This commit is contained in:
H1JK
2026-01-15 22:44:57 +08:00
committed by wwqgtxx
parent 11000dccd7
commit 828fd30dc3
4 changed files with 171 additions and 31 deletions

View File

@@ -95,6 +95,8 @@ func transform(servers []NameServer, resolver *Resolver) []dnsClient {
for _, s := range servers {
var c dnsClient
switch s.Net {
case "tls":
c = newDoTClient(s.Addr, resolver, s.Params, s.ProxyAdapter, s.ProxyName)
case "https":
c = newDoHClient(s.Addr, resolver, s.PreferH3, s.Params, s.ProxyAdapter, s.ProxyName)
case "dhcp":