aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/command_line_args.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon/command_line_args.h')
-rw-r--r--src/daemon/command_line_args.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/daemon/command_line_args.h b/src/daemon/command_line_args.h
index ee6167b6a..90093b65e 100644
--- a/src/daemon/command_line_args.h
+++ b/src/daemon/command_line_args.h
@@ -76,16 +76,12 @@ namespace daemon_args
, "127.0.0.1"
};
- const command_line::arg_descriptor<std::string> arg_zmq_rpc_bind_port = {
+ const command_line::arg_descriptor<std::string, false, true> arg_zmq_rpc_bind_port = {
"zmq-rpc-bind-port"
- , "Port for ZMQ RPC server to listen on"
- , std::to_string(config::ZMQ_RPC_DEFAULT_PORT)
- };
-
- const command_line::arg_descriptor<std::string> arg_zmq_testnet_rpc_bind_port = {
- "zmq-testnet-rpc-bind-port"
- , "Port for testnet ZMQ RPC server to listen on"
- , std::to_string(config::testnet::ZMQ_RPC_DEFAULT_PORT)
+ , "Port for ZMQ RPC server to listen on"
+ , cryptonote::arg_testnet_on
+ , std::to_string(config::testnet::ZMQ_RPC_DEFAULT_PORT)
+ , std::to_string(config::ZMQ_RPC_DEFAULT_PORT)
};
} // namespace daemon_args