fixup! options: Add `--offline` to disable listening and auto-reconnection

This commit is contained in:
Christian Decker 2018-02-22 10:58:42 +01:00 committed by Rusty Russell
parent 6f6176a91e
commit d499c34db2
1 changed files with 1 additions and 4 deletions

View File

@ -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),