diff options
author | Bertrand Jacquin <bertrand@jacquin.bzh> | 2024-04-04 22:33:16 +0100 |
---|---|---|
committer | Bertrand Jacquin <bertrand@jacquin.bzh> | 2024-04-06 14:50:40 +0100 |
commit | 4175d5b8d5c89a0617c0686c3e18d81286a43471 (patch) | |
tree | 0251fbbb773b4392497e580eb1a41b3a8df3ef57 /src/p2p/net_node.h | |
parent | net: bring consistency between IPv4 port and IPv6 port (diff) | |
download | monero-4175d5b8d5c89a0617c0686c3e18d81286a43471.tar.xz |
net: add retro compatibility with legacy IPv4 optionsdev/beber/ipv4
To ensure retro compatibility, legacy IPv4 daemon arguments and
configuration settings changes are marked as deprecated, but can still
be used falling back to new option name when new options are not used.
Raise warning in case legacy option are used.
* --p2p-bind-ip is an alias to --p2p-bind-ipv4-address
* --p2p-bind-port is an alias to --p2p-bind-ipv4-port
* --p2p-bind-port-ipv6 is an alias to --p2p-bind-ipv6-port
* --rpc-bind-ip is an alias to --rpc-bind-ipv4-address
* --rpc-restricted-bind-ip is an alias to --rpc-restricted-bind-ipv4-address
Diffstat (limited to 'src/p2p/net_node.h')
-rw-r--r-- | src/p2p/net_node.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/p2p/net_node.h b/src/p2p/net_node.h index a373c80a3..4db6a107c 100644 --- a/src/p2p/net_node.h +++ b/src/p2p/net_node.h @@ -522,8 +522,11 @@ namespace nodetool const int64_t default_limit_down = P2P_DEFAULT_LIMIT_RATE_DOWN; // kB/s extern const command_line::arg_descriptor<std::string> arg_p2p_bind_ipv4_address; extern const command_line::arg_descriptor<std::string> arg_p2p_bind_ipv6_address; + extern const command_line::arg_descriptor<std::string> arg_p2p_bind_ip; // DEPRECATED extern const command_line::arg_descriptor<std::string, false, true, 2> arg_p2p_bind_ipv4_port; extern const command_line::arg_descriptor<std::string, false, true, 2> arg_p2p_bind_ipv6_port; + extern const command_line::arg_descriptor<std::string> arg_p2p_bind_port; // DEPRECATED + extern const command_line::arg_descriptor<std::string> arg_p2p_bind_port_ipv6; // DEPRECATED extern const command_line::arg_descriptor<bool> arg_p2p_use_ipv6; extern const command_line::arg_descriptor<bool> arg_p2p_ignore_ipv4; extern const command_line::arg_descriptor<uint32_t> arg_p2p_external_port; |