summaryrefslogtreecommitdiffstats
path: root/src/config/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/config/mod.rs')
-rw-r--r--src/config/mod.rs20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/config/mod.rs b/src/config/mod.rs
index 9e63362..8ab634c 100644
--- a/src/config/mod.rs
+++ b/src/config/mod.rs
@@ -257,6 +257,20 @@ pub(crate) const OPTIONS: &[OptionSpec] = &[
"With the libp2p transport: the addresses to publish in the member list instead of those listened on, e.g. a public address forwarded to this node's listen port. Without, the listen addresses are published, loopback and link-local ones left out.",
),
option(
+ "libp2p-relay",
+ Kind::Flag,
+ "BOOL",
+ Some("false"),
+ "With the libp2p transport: relay for other nodes of the swarm that can't be dialled (bounded: 64 circuits, 8 per peer, each up to an hour and 1 GiB). Needs a listen address others can dial.",
+ ),
+ option(
+ "libp2p-relays",
+ Kind::List,
+ "MULTIADDR,[MULTIADDR...]",
+ None,
+ "With the libp2p transport: relays to be reachable through (multiaddrs, with or without the relay's peer ID), e.g. members started with libp2p-relay. Only these are used; never public ones.",
+ ),
+ option(
"libp2p-key-file",
Kind::Text,
"PATH",
@@ -378,6 +392,12 @@ pub(crate) struct Settings {
#[serde(default)]
#[cfg_attr(not(feature = "libp2p"), allow(dead_code))]
pub(crate) libp2p_announce: Vec<String>,
+ #[serde(default)]
+ #[cfg_attr(not(feature = "libp2p"), allow(dead_code))]
+ pub(crate) libp2p_relay: bool,
+ #[serde(default)]
+ #[cfg_attr(not(feature = "libp2p"), allow(dead_code))]
+ pub(crate) libp2p_relays: Vec<String>,
#[cfg_attr(not(feature = "libp2p"), allow(dead_code))]
pub(crate) libp2p_key_file: Option<PathBuf>,
pub(crate) mycelium_rest_url: Option<String>,