diff options
Diffstat (limited to 'src/transport/paths.rs')
| -rw-r--r-- | src/transport/paths.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/transport/paths.rs b/src/transport/paths.rs index e966839..2fe534a 100644 --- a/src/transport/paths.rs +++ b/src/transport/paths.rs @@ -480,6 +480,11 @@ impl Paths { .map(Link::own_address) } + /// This node's own addresses, one per transport: `<scheme>:<its identity there>`. + pub(crate) fn own_addresses(&self) -> Vec<String> { + self.links.iter().map(Link::own_address).collect() + } + /// The longest of the transports': until then, something may still be on its way. pub(crate) fn delivery_limit(&self) -> Duration { self.links |
