node: Fix addresses sent to peers on conn.

Send the node's configured external addresses instead of its listenning
addresses.  External addresses are ones which the service is reachable
from the outside world, the listening addresses can be the wrong context
(local area network, or 0.0.0.0).

Signed-off-by: Slack Coder <slackcoder@server.ky>
This commit is contained in:
Slack Coder 2022-11-23 13:13:56 -05:00
parent 308112618f
commit f5d06f6138
1 changed files with 1 additions and 1 deletions

View File

@ -1271,7 +1271,7 @@ mod gossip {
};
let mut msgs = vec![
Message::init(*signer.public_key(), config.listen.clone()),
Message::init(*signer.public_key(), config.external_addresses.clone()),
Message::inventory(gossip::inventory(timestamp, inventory), signer),
Message::subscribe(config.filter(), timestamp, Timestamp::MAX),
];