aboutsummaryrefslogtreecommitdiffstats
path: root/src/transport/libp2p/behaviour.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/libp2p/behaviour.rs')
-rw-r--r--src/transport/libp2p/behaviour.rs4
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,