set CompatibilityMode for android (#4091)
This commit is contained in:
1 parent
b36f3834eb
commit
f16ef00975
8 files changed
+98
-6
No files matched your search
+2
-2
@@ -26,8 +26,8 @@ func SetDefaultDNSAddress(dnsAddress string) {
|
||||
// Change default dns server
|
||||
net.DefaultResolver = &net.Resolver{
|
||||
PreferGo: true,
|
||||
Dial: func(ctx context.Context, network, address string) (net.Conn, error) {
|
||||
return net.Dial("udp", dnsAddress)
|
||||
Dial: func(ctx context.Context, network, _ string) (net.Conn, error) {
|
||||
return net.Dial(network, dnsAddress)
|
||||
},
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user