mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-27 16:51:34 +00:00
Report external addresses in identify (#926)
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
name = "libp2p-identify"
|
||||
edition = "2018"
|
||||
description = "Nodes identifcation protocol for libp2p"
|
||||
version = "0.3.0"
|
||||
version = "0.3.1"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
license = "MIT"
|
||||
repository = "https://github.com/libp2p/rust-libp2p"
|
||||
|
@ -148,11 +148,14 @@ where
|
||||
.map(|p| String::from_utf8_lossy(p).to_string())
|
||||
.collect();
|
||||
|
||||
let mut listen_addrs: Vec<_> = params.listened_addresses().cloned().collect();
|
||||
listen_addrs.extend(params.external_addresses());
|
||||
|
||||
let send_back_info = IdentifyInfo {
|
||||
public_key: self.local_public_key.clone(),
|
||||
protocol_version: self.protocol_version.clone(),
|
||||
agent_version: self.agent_version.clone(),
|
||||
listen_addrs: params.listened_addresses().cloned().collect(),
|
||||
listen_addrs,
|
||||
protocols,
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user