fix(cmd/run.go): always check whether network online (#588)

This commit is contained in:
Markson Hon 2024-08-08 00:58:26 +08:00 committed by GitHub
parent 4717fa2cdc
commit 00f1df6696
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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{