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 | a45e45ef8ca1ce70a0db8c5b0cefabde1ba9fd89 (patch) | |
| tree | 8a0c6365a7822a3e64aa1ef452ba4d4e0197c835 /src/main.rs | |
| parent | 4c0525ae5a7bfc50c9385d02f539cc8d8ab4d022 (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, }) |
