From d71324069d38f4601a6f8d6b46d95d09f3d01b5d Mon Sep 17 00:00:00 2001 From: Xiaochao Dong Date: Wed, 19 Apr 2023 11:30:57 +0800 Subject: [PATCH] Feature: support basic authentication for DoH (#2684) --- config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/config.go b/config/config.go index 76a4bc3..e9697d4 100644 --- a/config/config.go +++ b/config/config.go @@ -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":