mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-23 07:52:25 +00:00
Reduce to one connection per IP
This commit is contained in:
parent
3f269e988c
commit
0e0e6c5f39
1 changed files with 1 additions and 1 deletions
|
@ -1689,7 +1689,7 @@ namespace nodetool
|
||||||
template<class t_payload_net_handler>
|
template<class t_payload_net_handler>
|
||||||
bool node_server<t_payload_net_handler>::has_too_many_connections(const uint32_t ip)
|
bool node_server<t_payload_net_handler>::has_too_many_connections(const uint32_t ip)
|
||||||
{
|
{
|
||||||
const uint8_t max_connections = 3;
|
const uint8_t max_connections = 1;
|
||||||
uint8_t count = 0;
|
uint8_t count = 0;
|
||||||
|
|
||||||
m_net_server.get_config_object().foreach_connection([&](const p2p_connection_context& cntxt)
|
m_net_server.get_config_object().foreach_connection([&](const p2p_connection_context& cntxt)
|
||||||
|
|
Loading…
Reference in a new issue