diff options
| author | tv <tv@krebsco.de> | 2026-11-01 05:00:43 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-01 05:00:43 +0100 |
| commit | ab6a83c5c666dfc8603f0eae1537c30f7ee61ee1 (patch) | |
| tree | 4ee986476c22c24b07b19b0f55601917df2b89da /src/transport/libp2p/behaviour.rs | |
| parent | a2fb105ad94198bd342aa4586b742439e1a60083 (diff) | |
libp2p: dial newly announced peer addresses
Diffstat (limited to 'src/transport/libp2p/behaviour.rs')
| -rw-r--r-- | src/transport/libp2p/behaviour.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/transport/libp2p/behaviour.rs b/src/transport/libp2p/behaviour.rs index e9b156c..a2e8e91 100644 --- a/src/transport/libp2p/behaviour.rs +++ b/src/transport/libp2p/behaviour.rs @@ -244,7 +244,9 @@ impl Behaviour { dht }); let identify = ::libp2p::identify::Config::new(IDENTIFY_VERSION.to_owned(), key.public()) - .with_agent_version(format!("continuum/{}", env!("CARGO_PKG_VERSION"))); + .with_agent_version(format!("continuum/{}", env!("CARGO_PKG_VERSION"))) + // Connected peers hear of a new interface at once (`explore`). + .with_push_listen_addr_updates(true); let relay = relay.then(|| { ::libp2p::relay::Behaviour::new( peer_id, |
