mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-23 19:33:28 +01:00
p2p: fix testnet/mainnet port mixup
This commit is contained in:
parent
6ed314854c
commit
eda9fb5b98
@ -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))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user