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

This commit is contained in:
gVisor bot 2022-12-07 13:00:45 +08:00
parent d6a20af8b7
commit 2a1eb085a5

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":