opts: announce-addr-discovered on/off/auto switch

This adds the option to explicitly enable ip-discovery, which maybe
helpful for example when a user wants TOR announced along with
discovered IPs to improve connectivity and have TOR just as a fallback.

Changelog-Added: Adds config switch 'announce-addr-discovered': on/off/auto
This commit is contained in:
Michael Schmoock
2022-12-20 17:49:03 +01:00
parent bd75f8ea6c
commit 3babbc5201
10 changed files with 39 additions and 8 deletions

View File

@@ -73,7 +73,8 @@ def test_remote_addr(node_factory, bitcoind):
# don't announce anything per se
opts = {'may_reconnect': True,
'dev-allow-localhost': None,
'dev-no-reconnect': None}
'dev-no-reconnect': None,
'ip-discovery': True}
l1, l2, l3 = node_factory.get_nodes(3, opts)
# Disable announcing local autobind addresses with dev-allow-localhost.