diff options
| author | tv <tv@krebsco.de> | 2026-10-31 20:52:27 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-31 20:52:27 +0100 |
| commit | 78a927449c87225a4d811f8c1a419584e45e5109 (patch) | |
| tree | fc0110b2f58bd9c89a9bb6112dc843fabafc1ee2 /src/transport/libp2p/behaviour.rs | |
| parent | 8124270037d2949fb455f704f6bc45716179767e (diff) | |
libp2p: ignored ranges aren't told
Diffstat (limited to 'src/transport/libp2p/behaviour.rs')
| -rw-r--r-- | src/transport/libp2p/behaviour.rs | 7 |
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), |
