mirror of
https://github.com/fatedier/frp.git
synced 2026-01-11 22:23:12 +00:00
set CompatibilityMode for android (#4091)
This commit is contained in:
@@ -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