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

@@ -1189,7 +1189,7 @@ func parseNameServer(servers []string, respectRules bool, preferH3 bool) ([]dns.
dnsNetType = "tcp" // TCP
case "tls":
addr, err = hostWithDefaultPort(u.Host, "853")
dnsNetType = "tcp-tls" // DNS over TLS
dnsNetType = "tls" // DNS over TLS
case "http", "https":
addr, err = hostWithDefaultPort(u.Host, "443")
dnsNetType = "https" // DNS over HTTPS