Add support for mDNS (#2153)

* Use libp2p 0.6.0 instead of a custom branch

* Add support for mDNS

* Fix tests

* Nit
This commit is contained in:
Pierre Krieger
2019-03-31 20:47:15 -03:00
committed by DemiMarie-parity
parent d4a4022dd1
commit 3dfda381d5
6 changed files with 42 additions and 1 deletions
+2
View File
@@ -359,6 +359,8 @@ fn fill_network_configuration(
config.in_peers = cli.in_peers;
config.out_peers = cli.out_peers;
config.enable_mdns = !cli.no_mdns;
Ok(())
}
+5
View File
@@ -118,6 +118,11 @@ pub struct NetworkConfigurationParams {
#[structopt(long = "in-peers", value_name = "IN_PEERS", default_value = "25")]
pub in_peers: u32,
/// By default, the network will use mDNS to discover other nodes on the local network. This
/// disables it.
#[structopt(long = "no-mdns")]
pub no_mdns: bool,
#[allow(missing_docs)]
#[structopt(flatten)]
pub node_key_params: NodeKeyParams