Skip to content

Commit 32d05ec

Browse files
authored
feat(swarm): allow behaviours to share addresses of peers
Resolves: libp2p#4302. Pull-Request: libp2p#4371.
1 parent 5f9f70d commit 32d05ec

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ name = "libp2p-autonat"
33
edition = "2021"
44
rust-version = { workspace = true }
55
description = "NAT and firewall detection for libp2p"
6-
version = "0.12.0"
76
authors = ["David Craven <[email protected]>", "Elena Frank <[email protected]>"]
7+
version = "0.12.0"
88
license = "MIT"
99
repository = "https://github.com/libp2p/rust-libp2p"
1010
keywords = ["peer-to-peer", "libp2p", "networking"]

src/behaviour.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ impl Behaviour {
268268
pub fn add_server(&mut self, peer: PeerId, address: Option<Multiaddr>) {
269269
self.servers.insert(peer);
270270
if let Some(addr) = address {
271+
#[allow(deprecated)]
271272
self.inner.add_address(&peer, addr);
272273
}
273274
}

0 commit comments

Comments
 (0)