From: Felix Fietkau Date: Tue, 16 Aug 2022 18:31:16 +0000 (+0200) Subject: host: avoid running connect timer if the network is not up X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=f5136fcef2797d46f2ffa83e9885923fe256c955;p=project%2Funetd.git host: avoid running connect timer if the network is not up Signed-off-by: Felix Fietkau --- diff --git a/host.c b/host.c index 6f5c0af..bef8863 100644 --- a/host.c +++ b/host.c @@ -234,7 +234,7 @@ network_hosts_connect_cb(struct uloop_timeout *t) host->peer.state.num_net_queries = 0; net->num_net_queries = 0; - if (!net->net_config.keepalive) + if (!net->net_config.keepalive || !net->net_config.local_host) return; wg_peer_refresh(net);