core-lightning/gossipd
Rusty Russell 5a0bc83b20 Tor: don't do seed queries if we're supposed to always use proxy.
Risks leakage.  We could do lookup via the proxy, but that's a TODO.

There's only one occurance of getaddrinfo (and no gethostbyname), so
we add a flag to the callers.

Note: the use of --always-use-proxy suppresses *all* DNS lookups, even
those from connect commands and the command line.

FIXME: An implicit setting of use_proxy_always is done in gossipd if it
determines that we are announcing nothing but Tor addresses, but that
does *not* suppress 'connect'.

This is fixed in a later patch.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2018-05-10 02:28:44 +00:00
..
test gossipd: don't try to connect to non-routable addresses. 2018-05-07 22:37:28 +02:00
broadcast.c gossipd: make struct queued_message private. 2018-03-14 02:19:37 +00:00
broadcast.h Use expected LIGHTNING_DIR_FILE_H define 2018-03-25 23:54:21 +00:00
gossip_store.c gossipd: Handle failed lseek(...) 2018-05-06 20:45:10 +02:00
gossip_store.csv gossip_store: Save local_add_channel messages and replay them 2018-04-22 12:50:34 +02:00
gossip_store.h gossip_store: Save local_add_channel messages and replay them 2018-04-22 12:50:34 +02:00
gossip_wire.csv options: use NULL for unset Tor settings. 2018-05-10 02:28:44 +00:00
gossip.c Tor: don't do seed queries if we're supposed to always use proxy. 2018-05-10 02:28:44 +00:00
gossip.h gossip/tor.c: new file for socks proxy code. 2018-05-10 02:28:44 +00:00
handshake.c gossipd/lightningd: use wireaddr_internal. 2018-05-07 22:37:28 +02:00
handshake.h gossipd/lightningd: use wireaddr_internal. 2018-05-07 22:37:28 +02:00
Makefile gossip/tor.c: new file for socks proxy code. 2018-05-10 02:28:44 +00:00
netaddress.c netaddress: fix up IsTor() 2018-05-10 02:28:44 +00:00
netaddress.h gossipd: don't try to connect to non-routable addresses. 2018-05-07 22:37:28 +02:00
routing.c gossipd: don't try to connect to non-routable addresses. 2018-05-07 22:37:28 +02:00
routing.h gossipd: don't try to connect to non-routable addresses. 2018-05-07 22:37:28 +02:00
tor.c gossip: handle Tor proxy better. 2018-05-10 02:28:44 +00:00
tor.h gossip: handle Tor proxy better. 2018-05-10 02:28:44 +00:00