Browse Source

gossip: Pass use_dns option down to gossipd

Signed-off-by: Christian Decker <decker.christian@gmail.com>
ppa-0.6.1
Christian Decker 7 years ago
parent
commit
ceef61dbbd
  1. 4
      gossipd/gossip.c
  2. 1
      gossipd/gossip_wire.csv
  3. 2
      lightningd/gossip_control.c

4
gossipd/gossip.c

@ -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);
}

1
gossipd/gossip_wire.csv

@ -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.

Can't render this file because it has a wrong number of fields in line 6.

2
lightningd/gossip_control.c

@ -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…
Cancel
Save