fix: let any type of dns server can use remote proxy
This commit is contained in:
parent
cd99b2e795
commit
e03fcd24dd
1 changed files with 3 additions and 1 deletions
|
@ -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":
|
||||||
|
|
Loading…
Reference in a new issue