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
+2 -1
View File
@@ -343,7 +343,7 @@ impl<'a> ParseAndPrepareBuildSpec<'a> {
];
spec.add_boot_node(addr)
}
let json = service::chain_ops::build_spec(spec, raw_output)?;
print!("{}", json);
@@ -625,6 +625,7 @@ fn fill_network_configuration(
config.transport = TransportConfig::Normal {
enable_mdns: !is_dev && !cli.no_mdns,
allow_private_ipv4: !cli.no_private_ipv4,
wasm_external_transport: None,
};