Skip to content
This repository was archived by the owner on Oct 11, 2023. It is now read-only.

Commit 7b8c79b

Browse files
committed
Prefer to use go dns
1 parent 7162375 commit 7b8c79b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/util/network/network.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"errors"
55
"fmt"
66
"io/ioutil"
7+
"net"
78
"os"
89
"strings"
910

@@ -108,6 +109,7 @@ func LoadFromNetwork(location string) ([]byte, error) {
108109
}
109110
SetProxyEnvironmentVariables()
110111

112+
net.DefaultResolver.PreferGo = true
111113
cfg := config.LoadConfig()
112114
client := httpRetry.NewHTTPClient()
113115
client.MaxRetries = cfg.Rancher.HTTPLoadRetries

0 commit comments

Comments
 (0)