Add a --no-private-ipv4 CLI option (#4042)

* Add a --no-private-ipv4 CLI option

* Fix tests

* Fix tests
This commit is contained in:
Pierre Krieger
2019-11-10 11:14:36 +01:00
committed by Arkadiy Paronyan
parent 9defa6a281
commit 401e213aa2
8 changed files with 56 additions and 8 deletions
+1
View File
@@ -42,6 +42,7 @@ fn start_inner(wasm_ext: wasm_ext::ffi::Transport) -> Result<Client, Box<dyn std
let mut config = Configuration::<(), _, _>::default_with_spec_and_base_path(chain_spec, None);
config.network.transport = network::config::TransportConfig::Normal {
wasm_external_transport: Some(wasm_ext.clone()),
allow_private_ipv4: true,
enable_mdns: false,
};
config.telemetry_external_transport = Some(wasm_ext);