diff --git a/src/daemon/command_server.cpp b/src/daemon/command_server.cpp index 8f434c89a..f99b0844a 100644 --- a/src/daemon/command_server.cpp +++ b/src/daemon/command_server.cpp @@ -177,7 +177,7 @@ t_command_server::t_command_server( m_command_lookup.set_handler( "out_peers" , std::bind(&t_command_parser_executor::out_peers, &m_parser, p::_1) - , "Set max limit of out peers" + , "Set max number of out peers" ); m_command_lookup.set_handler( "start_save_graph" diff --git a/src/daemon/rpc_command_executor.cpp b/src/daemon/rpc_command_executor.cpp index fc06c858b..edf04bc82 100644 --- a/src/daemon/rpc_command_executor.cpp +++ b/src/daemon/rpc_command_executor.cpp @@ -964,6 +964,8 @@ bool t_rpc_command_executor::out_peers(uint64_t limit) } } + std::cout << "Max number of out peers set to " << limit << std::endl; + return true; } diff --git a/src/p2p/net_node.inl b/src/p2p/net_node.inl index 3cd874f7a..47a5dc6c3 100644 --- a/src/p2p/net_node.inl +++ b/src/p2p/net_node.inl @@ -92,7 +92,7 @@ namespace nodetool const command_line::arg_descriptor arg_no_igd = {"no-igd", "Disable UPnP port mapping"}; const command_line::arg_descriptor arg_offline = {"offline", "Do not listen for peers, nor connect to any"}; - const command_line::arg_descriptor arg_out_peers = {"out-peers", "set max limit of out peers", -1}; + const command_line::arg_descriptor arg_out_peers = {"out-peers", "set max number of out peers", -1}; const command_line::arg_descriptor arg_tos_flag = {"tos-flag", "set TOS flag", -1}; const command_line::arg_descriptor arg_limit_rate_up = {"limit-rate-up", "set limit-rate-up [kB/s]", -1};