aboutsummaryrefslogtreecommitdiff
path: root/src/p2p/net_node.cpp
diff options
context:
space:
mode:
authorwhythat <whythat@protonmail.com>2018-01-21 17:29:55 +0200
committerwhythat <whythat@protonmail.com>2018-02-16 22:32:01 +0200
commit05a12ccc2dc920f4a997e66e6965ae60c1a4c65e (patch)
treea694dfd20154294b7a12b9c0b99863c2049b86b6 /src/p2p/net_node.cpp
parentcommon: implement dependent option descriptor (diff)
downloadmonero-05a12ccc2dc920f4a997e66e6965ae60c1a4c65e.tar.xz
options: remove testnet-* options
Diffstat (limited to 'src/p2p/net_node.cpp')
-rw-r--r--src/p2p/net_node.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/p2p/net_node.cpp b/src/p2p/net_node.cpp
index 994941168..21a7fb50c 100644
--- a/src/p2p/net_node.cpp
+++ b/src/p2p/net_node.cpp
@@ -34,15 +34,12 @@
namespace nodetool
{
const command_line::arg_descriptor<std::string> arg_p2p_bind_ip = {"p2p-bind-ip", "Interface for p2p network protocol", "0.0.0.0"};
- const command_line::arg_descriptor<std::string> arg_p2p_bind_port = {
+ const command_line::arg_descriptor<std::string, false, true> arg_p2p_bind_port = {
"p2p-bind-port"
, "Port for p2p network protocol"
- , std::to_string(config::P2P_DEFAULT_PORT)
- };
- const command_line::arg_descriptor<std::string> arg_testnet_p2p_bind_port = {
- "testnet-p2p-bind-port"
- , "Port for testnet p2p network protocol"
+ , cryptonote::arg_testnet_on
, std::to_string(config::testnet::P2P_DEFAULT_PORT)
+ , std::to_string(config::P2P_DEFAULT_PORT)
};
const command_line::arg_descriptor<uint32_t> arg_p2p_external_port = {"p2p-external-port", "External port for p2p network protocol (if port forwarding used with NAT)", 0};
const command_line::arg_descriptor<bool> arg_p2p_allow_local_ip = {"allow-local-ip", "Allow local ip add to peer list, mostly in debug purposes"};