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
commit5728ce9ef83f933291d900be262fc4369f988233 (patch)
treef598a9218038813be8fbbff56f0a2c5c462f19e7 /src/transport/libp2p/behaviour.rs
parenta799bf88e0e26763f8cb072500b10f3cc3102e87 (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(),