mirror of https://github.com/Dreamacro/clash.git
Feature: support basic authentication for DoH (#2684)
This commit is contained in:
parent
b7aade5e11
commit
d71324069d
|
@ -566,7 +566,7 @@ func parseNameServer(servers []string) ([]dns.NameServer, error) {
|
|||
addr, err = hostWithDefaultPort(u.Host, "853")
|
||||
dnsNetType = "tcp-tls" // DNS over TLS
|
||||
case "https":
|
||||
clearURL := url.URL{Scheme: "https", Host: u.Host, Path: u.Path}
|
||||
clearURL := url.URL{Scheme: "https", Host: u.Host, Path: u.Path, User: u.User}
|
||||
addr = clearURL.String()
|
||||
dnsNetType = "https" // DNS over HTTPS
|
||||
case "dhcp":
|
||||
|
|
Loading…
Reference in New Issue