aboutsummaryrefslogtreecommitdiff
path: root/src/daemon
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon')
-rw-r--r--src/daemon/main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/daemon/main.cpp b/src/daemon/main.cpp
index dd576a680..5d8baf497 100644
--- a/src/daemon/main.cpp
+++ b/src/daemon/main.cpp
@@ -165,6 +165,10 @@ int main(int argc, char const * argv[])
{
auto rpc_ip_str = command_line::get_arg(vm, cryptonote::core_rpc_server::arg_rpc_bind_ip);
auto rpc_port_str = command_line::get_arg(vm, cryptonote::core_rpc_server::arg_rpc_bind_port);
+ if (testnet_mode)
+ {
+ rpc_port_str = command_line::get_arg(vm, cryptonote::core_rpc_server::arg_testnet_rpc_bind_port);
+ }
uint32_t rpc_ip;
uint16_t rpc_port;