From f5136fcef2797d46f2ffa83e9885923fe256c955 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 16 Aug 2022 20:31:16 +0200 Subject: [PATCH] host: avoid running connect timer if the network is not up Signed-off-by: Felix Fietkau --- host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2