mirror of
https://github.com/daeuniverse/dae.git
synced 2025-01-31 09:58:06 +07:00
fix(cmd/run.go): always check whether network online (#588)
(cherry picked from commit 00f1df6696
)
This commit is contained in:
parent
ef9690a652
commit
bcec026f27
@ -325,7 +325,7 @@ func newControlPlane(log *logrus.Logger, bpf interface{}, dnsCache map[string]*c
|
|||||||
}
|
}
|
||||||
// Resolve subscriptions to nodes.
|
// Resolve subscriptions to nodes.
|
||||||
resolvingfailed := false
|
resolvingfailed := false
|
||||||
if !conf.Global.DisableWaitingNetwork && len(conf.Subscription) > 0 {
|
if !conf.Global.DisableWaitingNetwork {
|
||||||
epo := 5 * time.Second
|
epo := 5 * time.Second
|
||||||
client := http.Client{
|
client := http.Client{
|
||||||
Transport: &http.Transport{
|
Transport: &http.Transport{
|
||||||
|
Loading…
Reference in New Issue
Block a user