aboutsummaryrefslogtreecommitdiffstats
path: root/src/transport/libp2p/behaviour.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-01 19:52:21 +0100
committertv <tv@krebsco.de>2026-11-01 19:52:21 +0100
commitf26904fdd167b31566fd79cbffcbfc4bafae0c28 (patch)
treebc1ae9006e8c3a7112b24077c58023c9486c1032 /src/transport/libp2p/behaviour.rs
parent5c5efb0440d50a91de942817f0886fcba6d5d3ae (diff)
libp2p: identify leaves out ignored externals
Identify no longer tells peers confirmed external addresses in ignored ranges, unless they were announced.
Diffstat (limited to 'src/transport/libp2p/behaviour.rs')
-rw-r--r--src/transport/libp2p/behaviour.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/transport/libp2p/behaviour.rs b/src/transport/libp2p/behaviour.rs
index a2e8e91..18d8011 100644
--- a/src/transport/libp2p/behaviour.rs
+++ b/src/transport/libp2p/behaviour.rs
@@ -276,6 +276,8 @@ impl Behaviour {
identify: Identifying {
inner: ::libp2p::identify::Behaviour::new(identify),
ranges: ignored.clone(),
+ // Set by `Libp2pTransport::start`.
+ announced: Vec::new(),
},
relay_client,
relay: relay.into(),