aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel Herranz <miguel@ipglider.org>2017-01-16 18:16:32 +0100
committerMiguel Herranz <miguel@ipglider.org>2017-01-16 18:16:32 +0100
commit0e0e6c5f391769dddeead94e0535164f04bac5d6 (patch)
tree6e13bccc49ac4b995be043087bac61a703c72f8d
parentLimit incoming connections from the same IP (diff)
downloadmonero-0e0e6c5f391769dddeead94e0535164f04bac5d6.tar.xz
Reduce to one connection per IP
-rw-r--r--src/p2p/net_node.inl2
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)