From c64a96723ec068fa7a9a7b60e6f7edd0f2f8603b Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 27 Oct 2026 03:44:03 +0100 Subject: use libp2p mDNS --- src/transport/identity.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/transport/identity.rs') 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 { + 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 (`:...`) or what one of the transports resolves to one (the /// first that does), asked WHO. -- cgit v1.3.1