mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-07-04 01:07:49 +02:00
cmd/ctrld: surpress backoff logging message
This commit is contained in:
committed by
Cuong Manh Le
parent
318fec27de
commit
d3fe2c730c
+1
-5
@@ -2,7 +2,6 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
|
||||||
"net"
|
"net"
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
@@ -24,10 +23,7 @@ var (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func probeStack() {
|
func probeStack() {
|
||||||
logf := func(format string, args ...any) {
|
b := backoff.NewBackoff("probeStack", func(format string, args ...any) {}, time.Minute)
|
||||||
fmt.Printf(format, args...)
|
|
||||||
}
|
|
||||||
b := backoff.NewBackoff("probeStack", logf, time.Minute)
|
|
||||||
for {
|
for {
|
||||||
if _, err := controld.Dialer.Dial("udp", net.JoinHostPort(bootstrapDNS, "53")); err == nil {
|
if _, err := controld.Dialer.Dial("udp", net.JoinHostPort(bootstrapDNS, "53")); err == nil {
|
||||||
hasNetworkUp = true
|
hasNetworkUp = true
|
||||||
|
|||||||
Reference in New Issue
Block a user