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/main.rs | |
| parent | a94037c1124c424638e862a8a6c35518f0f7ca73 (diff) | |
libp2p: add ignore option
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index 1803f15..1cfd173 100644 --- a/src/main.rs +++ b/src/main.rs @@ -392,6 +392,11 @@ fn libp2p_config( continuum: !relay_only, mdns: args.libp2p_mdns, upnp: args.libp2p_upnp, + ignore: args + .libp2p_ignore + .iter() + .map(|range| range.parse().context("libp2p-ignore")) + .collect::<Result<Vec<_>>>()?, public: args.libp2p_public, memory: false, }) |
