summaryrefslogtreecommitdiffstats
path: root/src/transport/identity.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-27 03:44:03 +0100
committertv <tv@krebsco.de>2026-10-27 03:44:03 +0100
commitc64a96723ec068fa7a9a7b60e6f7edd0f2f8603b (patch)
tree6fcf2f9c8f57c071262a62b12f8baaef20801af7 /src/transport/identity.rs
parent16942f707da89e4ce7ce178d116142a17911a614 (diff)
use libp2p mDNS
Diffstat (limited to 'src/transport/identity.rs')
-rw-r--r--src/transport/identity.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/transport/identity.rs b/src/transport/identity.rs
index bfd9432..04375f6 100644
--- a/src/transport/identity.rs
+++ b/src/transport/identity.rs
@@ -504,6 +504,20 @@ impl Transport for IdentityTransport {
self.shared.destination(peer).is_some()
}
+ /// Each transport's, with its scheme.
+ fn discovered_seeds(&self) -> Vec<String> {
+ self.shared
+ .links
+ .iter()
+ .flat_map(|link| {
+ link.inner
+ .discovered_seeds()
+ .into_iter()
+ .map(|seed| link.address(&seed))
+ })
+ .collect()
+ }
+
/// A node ID resolves to itself if this node knows where it is; anything else is
/// an address (`<scheme>:...`) or what one of the transports resolves to one (the
/// first that does), asked WHO.