mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2025-02-23 12:42:27 +08:00
fix: parse DoH url
This commit is contained in:
parent
a9839abd4c
commit
910e7fed97
@ -871,6 +871,7 @@ func parseNameServer(servers []string, preferH3 bool) ([]dns.NameServer, error)
|
|||||||
dnsNetType = "tcp-tls" // DNS over TLS
|
dnsNetType = "tcp-tls" // DNS over TLS
|
||||||
case "https":
|
case "https":
|
||||||
host := u.Host
|
host := u.Host
|
||||||
|
proxyAdapter = ""
|
||||||
if _, _, err := net.SplitHostPort(host); err != nil && strings.Contains(err.Error(), "missing port in address") {
|
if _, _, err := net.SplitHostPort(host); err != nil && strings.Contains(err.Error(), "missing port in address") {
|
||||||
host = net.JoinHostPort(host, "443")
|
host = net.JoinHostPort(host, "443")
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user