Skip to content

Commit 4f4045e

Browse files
committed
rust-peer: do not add externally observed maddrs
Might fix #131
1 parent 0d235e7 commit 4f4045e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rust-peer/src/main.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,8 @@ async fn main() -> Result<()> {
217217
{
218218
debug!("identify::Event::Received observed_addr: {}", observed_addr);
219219

220-
swarm.add_external_address(observed_addr);
220+
// Disable to see if it's the cause of the wrong multiaddrs getting announced
221+
// swarm.add_external_address(observed_addr);
221222

222223
// TODO: The following should no longer be necessary after https://github.com/libp2p/rust-libp2p/pull/4371.
223224
if protocols.iter().any(|p| p == &KADEMLIA_PROTOCOL_NAME) {

0 commit comments

Comments
 (0)