core-lightning/gossipd
Rusty Russell af065417e1 gossipd: handle wildcard addresses correctly.
If we're given a wildcard address, we can't announce it like that: we need
to try to turn it into a real address (using guess_address).  Then we
use that address.  As a side-effect of this cleanup, we only announce
*any* '--addr' if it's routable.

This fix means that our tests have to force '--announce-addr' because
otherwise localhost isn't routable.

This means that gossipd really controls the addresses now, and breaks
them into two arrays: what we bind to, and what we announce.  That is
now what we return to the master for json_getinfo(), which prints them
as 'bindings' and 'addresses' respectively.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2018-05-07 22:37:28 +02:00
..
test gossipd/lightningd: use wireaddr_internal. 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 gossipd: handle wildcard addresses correctly. 2018-05-07 22:37:28 +02:00
gossip.c gossipd: handle wildcard addresses correctly. 2018-05-07 22:37:28 +02: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 gossipd: take over address determination, from master. 2018-05-07 22:37:28 +02:00
netaddress.c gossipd: handle wildcard addresses correctly. 2018-05-07 22:37:28 +02:00
netaddress.h gossipd: handle wildcard addresses correctly. 2018-05-07 22:37:28 +02:00
routing.c gossip: HalfChans are public if we have an update and the Chan is 2018-05-07 01:10:48 +00:00
routing.h moveonly: Move handle_local_add_channel to routing.h 2018-04-22 12:50:34 +02:00