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/mod.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/transport/mod.rs') diff --git a/src/transport/mod.rs b/src/transport/mod.rs index 41dac71..6ae3814 100644 --- a/src/transport/mod.rs +++ b/src/transport/mod.rs @@ -555,6 +555,12 @@ pub(crate) trait Transport: Send + Sync { vec![peer.to_owned()] } + /// Seeds the transport found by itself since last asked (libp2p: nodes on the LAN), + /// for a node that is joining. By default none. + fn discovered_seeds(&self) -> Vec { + Vec::new() + } + /// Whether this node has a way to reach `peer` at all: an address of it on one of /// its transports. Members it can't reach aren't its neighbours (`swarm::topology`). /// By default yes, as for `local_addresses`. -- cgit v1.3.1