mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-28 05:07:55 +00:00
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:
committed by
DemiMarie-parity
parent
d4a4022dd1
commit
3dfda381d5
@@ -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(())
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user