From a08c430100edfba7b924c957f98294fd79de0e1b Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 31 Oct 2026 20:52:27 +0100 Subject: libp2p: ignored ranges aren't told --- src/transport/libp2p/behaviour.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/transport/libp2p/behaviour.rs') 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), -- cgit v1.3.1