summaryrefslogtreecommitdiffstats
path: root/src/transport/mod.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/mod.rs
parent16942f707da89e4ce7ce178d116142a17911a614 (diff)
use libp2p mDNS
Diffstat (limited to 'src/transport/mod.rs')
-rw-r--r--src/transport/mod.rs6
1 files changed, 6 insertions, 0 deletions
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<String> {
+ 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`.