fix: let any type of dns server can use remote proxy

This commit is contained in:
wwqgtxx 2022-12-07 13:00:45 +08:00
parent cd99b2e795
commit e03fcd24dd

View file

@ -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()) 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{} params := map[string]string{}
switch u.Scheme { switch u.Scheme {
case "udp": case "udp":