internal/net: fix wrong address when testing network up

This commit is contained in:
Cuong Manh Le
2023-02-10 19:49:15 +07:00
committed by Cuong Manh Le
parent 83b551fb2d
commit e385547461

View File

@@ -38,7 +38,7 @@ var (
func probeStack() {
b := backoff.NewBackoff("probeStack", func(format string, args ...any) {}, time.Minute)
for {
if _, err := Dialer.Dial("udp", net.JoinHostPort(bootstrapDNS, "53")); err == nil {
if _, err := Dialer.Dial("udp", bootstrapDNS); err == nil {
hasNetworkUp = true
break
} else {