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 | 23a43e60d2a0da0f2f7c9b2c34472ef2911eec0e (patch) | |
| tree | c416aba7cf704d73165a46b66a5d9932ac9454ae /src/transport/libp2p/behaviour.rs | |
| parent | da3b37439fcb9ba298f27f9133131d64413e0e0c (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), |
