mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
connect: return address we actually connected to.
Otherwise, we might find an address other than the one given and the user might think that address worked. Fixes: #4185 Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Changelog-Added: JSON-RPC: `connect` returns `address` it actually connected to
This commit is contained in:
@@ -784,7 +784,8 @@ def test_address(node_factory):
|
||||
l1.start()
|
||||
|
||||
l2 = node_factory.get_node()
|
||||
l2.rpc.connect(l1.info['id'], l1.daemon.opts['bind-addr'])
|
||||
ret = l2.rpc.connect(l1.info['id'], l1.daemon.opts['bind-addr'])
|
||||
assert ret['address'] == {'type': 'local socket', 'socket': l1.daemon.opts['bind-addr']}
|
||||
|
||||
# 'addr' with local socket works too.
|
||||
l1.stop()
|
||||
|
||||
Reference in New Issue
Block a user