diff options
| author | tv <tv@krebsco.de> | 2026-10-29 05:32:49 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-29 05:32:49 +0100 |
| commit | e36d7c78565560af223950186256896d05f58010 (patch) | |
| tree | b060c290bfad96ce37fd27a738e8e988c7b606c1 /src/config | |
| parent | a94037c1124c424638e862a8a6c35518f0f7ca73 (diff) | |
libp2p: add ignore option
Diffstat (limited to 'src/config')
| -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 cb4bf19..85d71d2 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -271,6 +271,13 @@ 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-ignore", + Kind::List, + "RANGE,[RANGE...]", + None, + "With the libp2p transport: address ranges libp2p leaves out, e.g. 10.244.0.0/16 and 42::/16 (VPNs): addresses there are neither published (but announced ones) nor offered for hole punching nor dialled, and connections there are refused, whoever dials.", + ), + option( "libp2p-relay", Kind::Flag, "BOOL", @@ -468,6 +475,9 @@ pub(crate) struct Settings { pub(crate) libp2p_upnp: bool, #[serde(default)] #[cfg_attr(not(feature = "libp2p"), allow(dead_code))] + pub(crate) libp2p_ignore: Vec<String>, + #[serde(default)] + #[cfg_attr(not(feature = "libp2p"), allow(dead_code))] pub(crate) libp2p_public: bool, #[cfg_attr(not(feature = "libp2p"), allow(dead_code))] pub(crate) libp2p_key_file: Option<PathBuf>, |
