aboutsummaryrefslogtreecommitdiffstats
path: root/src/transport/libp2p/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/libp2p/mod.rs')
-rw-r--r--src/transport/libp2p/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/transport/libp2p/mod.rs b/src/transport/libp2p/mod.rs
index 477f1ba..0bbabc7 100644
--- a/src/transport/libp2p/mod.rs
+++ b/src/transport/libp2p/mod.rs
@@ -247,6 +247,8 @@ impl Libp2pTransport {
.listen_on(address.clone())
.with_context(|| format!("Listening on {address}"))?;
}
+ // Told peers whatever range they are in (`Identifying`).
+ swarm.behaviour_mut().identify.announced = config.announce.clone();
for address in &config.announce {
// Identify tells peers these.
swarm.add_external_address(address.clone());