Set PreferGo to false (#323)

This commit is contained in:
Markson Hon authored and GitHub committed 2021-12-09 13:21:33 +08:00
1 parent 57df30100c
commit e30bcf046c
1 file changed
+1 -1
+1 -1
View File
@@ -26,7 +26,7 @@ func init() {
rand.Seed(time.Now().UnixNano())
dialer := net.Dialer{Timeout: 1000 * time.Millisecond}
DefaultResolver = &net.Resolver{
PreferGo: true,
PreferGo: false,
StrictErrors: false,
Dial: func(ctx context.Context, network, address string) (net.Conn, error) {
server := dnsServers[rand.Intn(len(dnsServers))]