Rename *-private-ipv4 to *-private-ip CLI args (#13208)

* Rename `*-private-ipv4` to `*-private-ip` CLI args

Renames the `*-private-ipv4` to `*-private-ip` in the CLI interface. The old names are staying as
alias, thus it will not break for anyone. Besides that it also fixes the naming in the rest of the code.

* FMT
This commit is contained in:
Bastian Köcher
2023-01-23 12:35:04 +01:00
committed by GitHub
parent 42e5c27c84
commit d20a9bdc21
6 changed files with 33 additions and 29 deletions
@@ -301,10 +301,10 @@ pub enum TransportConfig {
/// and connect to them if they support the same chain.
enable_mdns: bool,
/// If true, allow connecting to private IPv4 addresses (as defined in
/// If true, allow connecting to private IPv4/IPv6 addresses (as defined in
/// [RFC1918](https://tools.ietf.org/html/rfc1918)). Irrelevant for addresses that have
/// been passed in `::sc_network::config::NetworkConfiguration::boot_nodes`.
allow_private_ipv4: bool,
allow_private_ip: bool,
},
/// Only allow connections within the same process.