aboutsummaryrefslogtreecommitdiffstats
path: root/src/config
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-27 03:11:44 +0100
committertv <tv@krebsco.de>2026-10-27 03:11:44 +0100
commit3455b1ddb2f2ea95a1fb770882b5230d45a7d3de (patch)
treeb96f0af83e5edae5e007db2ff4d6b3f76a7e8ee1 /src/config
parent3ea038aacb0f63d5812dcf062fc326a80eead79d (diff)
use libp2p identify protocol & announce alt addrs
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 dd025a2..9e63362 100644
--- a/src/config/mod.rs
+++ b/src/config/mod.rs
@@ -250,6 +250,13 @@ pub(crate) const OPTIONS: &[OptionSpec] = &[
"With the libp2p transport: where to listen, e.g. /ip4/0.0.0.0/tcp/9661 and /ip4/0.0.0.0/udp/9661/quic-v1. Without, the node only connects out. The addresses it listens on are published in the member list.",
),
option(
+ "libp2p-announce",
+ Kind::List,
+ "MULTIADDR,[MULTIADDR...]",
+ None,
+ "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-key-file",
Kind::Text,
"PATH",
@@ -368,6 +375,9 @@ pub(crate) struct Settings {
#[serde(default)]
#[cfg_attr(not(feature = "libp2p"), allow(dead_code))]
pub(crate) libp2p_listen: Vec<String>,
+ #[serde(default)]
+ #[cfg_attr(not(feature = "libp2p"), allow(dead_code))]
+ pub(crate) libp2p_announce: Vec<String>,
#[cfg_attr(not(feature = "libp2p"), allow(dead_code))]
pub(crate) libp2p_key_file: Option<PathBuf>,
pub(crate) mycelium_rest_url: Option<String>,