From 910e7fed977b2c1a73fef1bd1c022ef13295753a Mon Sep 17 00:00:00 2001 From: Skyxim Date: Thu, 8 Dec 2022 12:46:46 +0800 Subject: [PATCH] fix: parse DoH url --- config/config.go | 1 + 1 file changed, 1 insertion(+) diff --git a/config/config.go b/config/config.go index 0a2cb963..da05877f 100644 --- a/config/config.go +++ b/config/config.go @@ -871,6 +871,7 @@ func parseNameServer(servers []string, preferH3 bool) ([]dns.NameServer, error) dnsNetType = "tcp-tls" // DNS over TLS case "https": host := u.Host + proxyAdapter = "" if _, _, err := net.SplitHostPort(host); err != nil && strings.Contains(err.Error(), "missing port in address") { host = net.JoinHostPort(host, "443") } else {