diff options
author | Miguel Herranz <miguel@ipglider.org> | 2017-01-16 18:16:32 +0100 |
---|---|---|
committer | Miguel Herranz <miguel@ipglider.org> | 2017-01-16 18:16:32 +0100 |
commit | 0e0e6c5f391769dddeead94e0535164f04bac5d6 (patch) | |
tree | 6e13bccc49ac4b995be043087bac61a703c72f8d | |
parent | Limit incoming connections from the same IP (diff) | |
download | monero-0e0e6c5f391769dddeead94e0535164f04bac5d6.tar.xz |
Reduce to one connection per IP
-rw-r--r-- | src/p2p/net_node.inl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/p2p/net_node.inl b/src/p2p/net_node.inl index e9847b64d..452f6d1a6 100644 --- a/src/p2p/net_node.inl +++ b/src/p2p/net_node.inl @@ -1689,7 +1689,7 @@ namespace nodetool template<class t_payload_net_handler> 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; m_net_server.get_config_object().foreach_connection([&](const p2p_connection_context& cntxt) |