diff options
| author | tv <tv@krebsco.de> | 2026-10-27 03:11:44 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-27 03:11:44 +0100 |
| commit | c54270bdfda6dd3dcc3107693a93bd224bb65c7c (patch) | |
| tree | ac5fa83aa4574f2b5839de22d096f82da530ec71 /src/config/mod.rs | |
| parent | 0f9c74fbde6da95d7ec25d8de4741c45415c2dcc (diff) | |
use libp2p identify protocol & announce alt addrs
Diffstat (limited to 'src/config/mod.rs')
| -rw-r--r-- | src/config/mod.rs | 10 |
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>, |
