summaryrefslogtreecommitdiffstats
path: root/src/config
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/config
parent16942f707da89e4ce7ce178d116142a17911a614 (diff)
use libp2p mDNS
Diffstat (limited to 'src/config')
-rw-r--r--src/config/mod.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/config/mod.rs b/src/config/mod.rs
index 2646e73..08a3742 100644
--- a/src/config/mod.rs
+++ b/src/config/mod.rs
@@ -271,6 +271,13 @@ pub(crate) const OPTIONS: &[OptionSpec] = &[
"With the libp2p transport: relays to be reachable through always (multiaddrs, with or without the relay's peer ID). Without, a node that can't be dialled picks members that relay (libp2p-relay) by itself. Never public ones.",
),
option(
+ "libp2p-mdns",
+ Kind::Flag,
+ "BOOL",
+ Some("false"),
+ "With the libp2p transport: find nodes on the LAN (multicast DNS, IPv4). Those that speak continuum are seeds while joining, so nodes on one LAN find each other without configured seeds; a swarm key keeps a new node from joining another swarm on the same LAN.",
+ ),
+ option(
"libp2p-key-file",
Kind::Text,
"PATH",
@@ -398,6 +405,9 @@ pub(crate) struct Settings {
#[serde(default)]
#[cfg_attr(not(feature = "libp2p"), allow(dead_code))]
pub(crate) libp2p_relays: Vec<String>,
+ #[serde(default)]
+ #[cfg_attr(not(feature = "libp2p"), allow(dead_code))]
+ pub(crate) libp2p_mdns: bool,
#[cfg_attr(not(feature = "libp2p"), allow(dead_code))]
pub(crate) libp2p_key_file: Option<PathBuf>,
pub(crate) mycelium_rest_url: Option<String>,