From e03fcd24dd5a5bd769f193cb68a2c1b67c256b73 Mon Sep 17 00:00:00 2001 From: wwqgtxx Date: Wed, 7 Dec 2022 13:00:45 +0800 Subject: [PATCH] fix: let any type of dns server can use remote proxy --- config/config.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/config.go b/config/config.go index 6695fd11..0a2cb963 100644 --- a/config/config.go +++ b/config/config.go @@ -855,7 +855,9 @@ func parseNameServer(servers []string, preferH3 bool) ([]dns.NameServer, error) return nil, fmt.Errorf("DNS NameServer[%d] format error: %s", idx, err.Error()) } - var addr, dnsNetType, proxyAdapter string + proxyAdapter := u.Fragment + + var addr, dnsNetType string params := map[string]string{} switch u.Scheme { case "udp":