diff options
| author | tv <tv@krebsco.de> | 2026-11-01 19:52:21 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-01 19:52:21 +0100 |
| commit | f26904fdd167b31566fd79cbffcbfc4bafae0c28 (patch) | |
| tree | bc1ae9006e8c3a7112b24077c58023c9486c1032 /src/transport/libp2p/mod.rs | |
| parent | 5c5efb0440d50a91de942817f0886fcba6d5d3ae (diff) | |
libp2p: identify leaves out ignored externals
Identify no longer tells peers confirmed external addresses in ignored
ranges, unless they were announced.
Diffstat (limited to 'src/transport/libp2p/mod.rs')
| -rw-r--r-- | src/transport/libp2p/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/transport/libp2p/mod.rs b/src/transport/libp2p/mod.rs index 477f1ba..0bbabc7 100644 --- a/src/transport/libp2p/mod.rs +++ b/src/transport/libp2p/mod.rs @@ -247,6 +247,8 @@ impl Libp2pTransport { .listen_on(address.clone()) .with_context(|| format!("Listening on {address}"))?; } + // Told peers whatever range they are in (`Identifying`). + swarm.behaviour_mut().identify.announced = config.announce.clone(); for address in &config.announce { // Identify tells peers these. swarm.add_external_address(address.clone()); |
