From d499c34db25bf970c74e35bf6bf0e56f50747aa5 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Thu, 22 Feb 2018 10:58:42 +0100 Subject: [PATCH] fixup! options: Add `--offline` to disable listening and auto-reconnection --- gossipd/gossip.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/gossipd/gossip.c b/gossipd/gossip.c index 548bcc1e6..22fed49d7 100644 --- a/gossipd/gossip.c +++ b/gossipd/gossip.c @@ -1502,10 +1502,7 @@ static struct io_plan *gossip_init(struct daemon_conn *master, } daemon->rstate = new_routing_state(daemon, &chain_hash, &daemon->id); - if (port) - setup_listeners(daemon, port); - else - status_trace("Not listeing for incoming connections due to --no-listen"); + setup_listeners(daemon, port); new_reltimer(&daemon->timers, daemon, time_from_sec(daemon->update_channel_interval/2),