mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-08-10 13:20:33 +02:00
internal/net: fix wrong address when testing network up
This commit is contained in:
+1
-1
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user