internal/net: fix wrong address when testing network up

This commit is contained in:
Cuong Manh Le
2023-02-27 20:13:44 +07:00
committed by Cuong Manh Le
parent 83b551fb2d
commit e385547461
+1 -1
View File
@@ -38,7 +38,7 @@ var (
func probeStack() { func probeStack() {
b := backoff.NewBackoff("probeStack", func(format string, args ...any) {}, time.Minute) b := backoff.NewBackoff("probeStack", func(format string, args ...any) {}, time.Minute)
for { for {
if _, err := Dialer.Dial("udp", net.JoinHostPort(bootstrapDNS, "53")); err == nil { if _, err := Dialer.Dial("udp", bootstrapDNS); err == nil {
hasNetworkUp = true hasNetworkUp = true
break break
} else { } else {