We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 854da22 + 03a6ffd commit 45c614aCopy full SHA for 45c614a
core/pkg/net/dns/dns.go
@@ -42,7 +42,7 @@ func GetSystemNameServers() ([]net.IP, error) {
42
continue
43
}
44
fields := strings.Fields(trimmed)
45
- if len(fields) == 0 {
+ if len(fields) < 2 {
46
47
48
if fields[0] == "nameserver" {
0 commit comments