mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-29 14:00:31 +08:00
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:
@@ -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),
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user