diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-01-28 09:44:04 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-01-28 09:44:04 +0000 |
commit | eda9fb5b9866d0a20f0e2dfe5735a3aa99f24c04 (patch) | |
tree | d9164535fdeb2db11c96fbedaee8389efe184e39 /src | |
parent | Merge pull request #3188 (diff) | |
download | monero-eda9fb5b9866d0a20f0e2dfe5735a3aa99f24c04.tar.xz |
p2p: fix testnet/mainnet port mixup
Diffstat (limited to 'src')
-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 152dba942..a25a8e111 100644 --- a/src/p2p/net_node.inl +++ b/src/p2p/net_node.inl @@ -262,6 +262,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); @@ -270,7 +272,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)) { |