diff options
author | Riccardo Spagni <ric@spagni.net> | 2018-02-16 14:31:16 +0100 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2018-02-16 14:31:16 +0100 |
commit | ef91d6e61eac584c82b9f55fa0aa6fe58b8b1b4f (patch) | |
tree | 5904ba9d666e6872f98d28a999e00d17b199efc5 /src/p2p/net_node.inl | |
parent | Merge pull request #3199 (diff) | |
parent | p2p: fix testnet/mainnet port mixup (diff) | |
download | monero-ef91d6e61eac584c82b9f55fa0aa6fe58b8b1b4f.tar.xz |
Merge pull request #3196
eda9fb5b p2p: fix testnet/mainnet port mixup (moneromooo-monero)
Diffstat (limited to 'src/p2p/net_node.inl')
-rw-r--r-- | src/p2p/net_node.inl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/p2p/net_node.inl b/src/p2p/net_node.inl index ea7fc51ee..d60f0a13e 100644 --- a/src/p2p/net_node.inl +++ b/src/p2p/net_node.inl @@ -263,6 +263,8 @@ namespace nodetool const boost::program_options::variables_map& vm ) { + m_testnet = command_line::get_arg(vm, cryptonote::arg_testnet_on); + auto p2p_bind_arg = m_testnet ? arg_testnet_p2p_bind_port : arg_p2p_bind_port; m_bind_ip = command_line::get_arg(vm, arg_p2p_bind_ip); @@ -271,7 +273,6 @@ namespace nodetool m_allow_local_ip = command_line::get_arg(vm, arg_p2p_allow_local_ip); m_no_igd = command_line::get_arg(vm, arg_no_igd); m_offline = command_line::get_arg(vm, cryptonote::arg_offline); - m_testnet = command_line::get_arg(vm, cryptonote::arg_testnet_on); if (command_line::has_arg(vm, arg_p2p_add_peer)) { |