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
commit9259fc264d4be704c1d64eecd10ef67935794576 (patch)
treed51120d1548623d26ccf44d1af49d4c2bcedfc71 /src/transport/libp2p/behaviour.rs
parent1c104becf94ffe082638d8bded2e9b730c75a5be (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(),