mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
gossipd: don't try to connect to non-routable addresses.
Someone could try to announce an internal address, and we might probe it. This breaks tests, so we add '--dev-allow-localhost' for our tests, so we don't eliminate that one. Of course, now we need to skip some more tests in non-developer mode. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
af065417e1
commit
d40d22b68e
@@ -261,9 +261,7 @@ class LightningD(TailableProc):
|
||||
opts = {
|
||||
'bitcoin-datadir': bitcoin_dir,
|
||||
'lightning-dir': lightning_dir,
|
||||
'bind-addr': '127.0.0.1:{}'.format(port),
|
||||
# lightningd won't announce non-routable addresses by default.
|
||||
'announce-addr': '127.0.0.1:{}'.format(port),
|
||||
'addr': '127.0.0.1:{}'.format(port),
|
||||
'allow-deprecated-apis': 'false',
|
||||
'override-fee-rates': '15000/7500/1000',
|
||||
'network': 'regtest',
|
||||
@@ -283,6 +281,8 @@ class LightningD(TailableProc):
|
||||
f.write(seed)
|
||||
if DEVELOPER:
|
||||
self.opts['dev-broadcast-interval'] = 1000
|
||||
# lightningd won't announce non-routable addresses by default.
|
||||
self.opts['dev-allow-localhost'] = None
|
||||
self.prefix = 'lightningd-%d' % (node_id)
|
||||
|
||||
@property
|
||||
|
||||
Reference in New Issue
Block a user