From bcec026f276adb7fb185a3a27e3a58b552425b3a Mon Sep 17 00:00:00 2001 From: Markson Hon <50002150+MarksonHon@users.noreply.github.com> Date: Thu, 8 Aug 2024 00:58:26 +0800 Subject: [PATCH] fix(cmd/run.go): always check whether network online (#588) (cherry picked from commit 00f1df66966c51f8a2a96475b3cd287e1bd3113f) --- cmd/run.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/run.go b/cmd/run.go index c3be0d6..7b6444b 100644 --- a/cmd/run.go +++ b/cmd/run.go @@ -325,7 +325,7 @@ func newControlPlane(log *logrus.Logger, bpf interface{}, dnsCache map[string]*c } // Resolve subscriptions to nodes. resolvingfailed := false - if !conf.Global.DisableWaitingNetwork && len(conf.Subscription) > 0 { + if !conf.Global.DisableWaitingNetwork { epo := 5 * time.Second client := http.Client{ Transport: &http.Transport{