mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-15 20:09:18 +01:00
gossip: Pass use_dns option down to gossipd
Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
parent
1bfa02d877
commit
ceef61dbbd
3 changed files with 5 additions and 2 deletions
|
@ -170,6 +170,8 @@ struct daemon {
|
|||
bool use_proxy_always;
|
||||
char *tor_password;
|
||||
|
||||
/* @see lightningd.config.use_dns */
|
||||
bool use_dns;
|
||||
};
|
||||
|
||||
/* Peers we're trying to reach. */
|
||||
|
@ -2836,7 +2838,7 @@ static struct io_plan *gossip_init(struct daemon_conn *master,
|
|||
&daemon->proposed_listen_announce, daemon->rgb,
|
||||
daemon->alias, &update_channel_interval, &daemon->reconnect,
|
||||
&proxyaddr, &daemon->use_proxy_always,
|
||||
&dev_allow_localhost,
|
||||
&dev_allow_localhost, &daemon->use_dns,
|
||||
&daemon->tor_password)) {
|
||||
master_badmsg(WIRE_GOSSIPCTL_INIT, msg);
|
||||
}
|
||||
|
|
|
@ -23,6 +23,7 @@ gossipctl_init,,num_tor_proxyaddrs,u16
|
|||
gossipctl_init,,tor_proxyaddr,num_tor_proxyaddrs*struct wireaddr
|
||||
gossipctl_init,,use_tor_proxy_always,bool
|
||||
gossipctl_init,,dev_allow_localhost,bool
|
||||
gossipctl_init,,use_dns,bool
|
||||
gossipctl_init,,tor_password,wirestring
|
||||
|
||||
# Activate the gossip daemon, so others can connect.
|
||||
|
|
|
|
@ -246,7 +246,7 @@ void gossip_init(struct lightningd *ld)
|
|||
listen_announce, ld->rgb,
|
||||
ld->alias, ld->config.channel_update_interval, ld->reconnect,
|
||||
ld->proxyaddr, ld->use_proxy_always || ld->pure_tor_setup,
|
||||
allow_localhost,
|
||||
allow_localhost, ld->config.use_dns,
|
||||
ld->tor_service_password ? ld->tor_service_password : "");
|
||||
subd_send_msg(ld->gossip, msg);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue