mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 22:11:06 +00:00
Fix description of --no-private-ipv4 (#4950)
This commit is contained in:
@@ -207,7 +207,7 @@ pub struct NetworkConfigurationParams {
|
|||||||
#[structopt(long = "port", value_name = "PORT")]
|
#[structopt(long = "port", value_name = "PORT")]
|
||||||
pub port: Option<u16>,
|
pub port: Option<u16>,
|
||||||
|
|
||||||
/// Allow connecting to private IPv4 addresses (as specified in
|
/// Forbid connecting to private IPv4 addresses (as specified in
|
||||||
/// [RFC1918](https://tools.ietf.org/html/rfc1918)), unless the address was passed with
|
/// [RFC1918](https://tools.ietf.org/html/rfc1918)), unless the address was passed with
|
||||||
/// `--reserved-nodes` or `--bootnodes`.
|
/// `--reserved-nodes` or `--bootnodes`.
|
||||||
#[structopt(long = "no-private-ipv4")]
|
#[structopt(long = "no-private-ipv4")]
|
||||||
|
|||||||
@@ -338,8 +338,9 @@ pub enum TransportConfig {
|
|||||||
enable_mdns: bool,
|
enable_mdns: bool,
|
||||||
|
|
||||||
/// If true, allow connecting to private IPv4 addresses (as defined in
|
/// If true, allow connecting to private IPv4 addresses (as defined in
|
||||||
/// [RFC1918](https://tools.ietf.org/html/rfc1918)), unless the address has been passed in
|
/// [RFC1918](https://tools.ietf.org/html/rfc1918)). Irrelevant for addresses that have
|
||||||
/// [`NetworkConfiguration::reserved_nodes`] or [`NetworkConfiguration::boot_nodes`].
|
/// been passed in [`NetworkConfiguration::reserved_nodes`] or
|
||||||
|
/// [`NetworkConfiguration::boot_nodes`].
|
||||||
allow_private_ipv4: bool,
|
allow_private_ipv4: bool,
|
||||||
|
|
||||||
/// Optional external implementation of a libp2p transport. Used in WASM contexts where we
|
/// Optional external implementation of a libp2p transport. Used in WASM contexts where we
|
||||||
|
|||||||
Reference in New Issue
Block a user