aboutsummaryrefslogtreecommitdiffstats
path: root/src/transport/libp2p/behaviour.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-31 20:52:27 +0100
committertv <tv@krebsco.de>2026-10-31 20:52:27 +0100
commita08c430100edfba7b924c957f98294fd79de0e1b (patch)
tree630ee7e6339f84a04147d5b268755b08484ba7c5 /src/transport/libp2p/behaviour.rs
parent491b24d27c2e70d2197c5cd16397967232f087fe (diff)
libp2p: ignored ranges aren't told
Diffstat (limited to 'src/transport/libp2p/behaviour.rs')
-rw-r--r--src/transport/libp2p/behaviour.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/transport/libp2p/behaviour.rs b/src/transport/libp2p/behaviour.rs
index 4ced88a..e9b156c 100644
--- a/src/transport/libp2p/behaviour.rs
+++ b/src/transport/libp2p/behaviour.rs
@@ -11,7 +11,7 @@ pub(super) struct Behaviour {
/// First: connections it denies need nothing from the others.
pub(super) ignoring: Ignoring,
pub(super) stream: libp2p_stream::Behaviour,
- pub(super) identify: ::libp2p::identify::Behaviour,
+ pub(super) identify: Identifying,
pub(super) relay_client: ::libp2p::relay::client::Behaviour,
/// Only with `Libp2pConfig::relay`.
pub(super) relay: ::libp2p::swarm::behaviour::toggle::Toggle<::libp2p::relay::Behaviour>,
@@ -271,7 +271,10 @@ impl Behaviour {
ranges: ignored.clone(),
},
stream: libp2p_stream::Behaviour::new(),
- identify: ::libp2p::identify::Behaviour::new(identify),
+ identify: Identifying {
+ inner: ::libp2p::identify::Behaviour::new(identify),
+ ranges: ignored.clone(),
+ },
relay_client,
relay: relay.into(),
dcutr: HolePunching::new(peer_id, ignored),