aboutsummaryrefslogtreecommitdiff
path: root/src/p2p/net_node.h
diff options
context:
space:
mode:
authorMiguel Herranz <miguel@ipglider.org>2017-01-14 13:21:20 +0100
committerMiguel Herranz <miguel@ipglider.org>2017-01-15 12:11:27 +0100
commit3f269e988c9dae849208dca4167cbadbcd1ab90d (patch)
treeda7a6ea6569635a8ee08ec2f3c31c50c27cf783e /src/p2p/net_node.h
parentMerge pull request #1559 (diff)
downloadmonero-3f269e988c9dae849208dca4167cbadbcd1ab90d.tar.xz
Limit incoming connections from the same IP
Diffstat (limited to 'src/p2p/net_node.h')
-rw-r--r--src/p2p/net_node.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/p2p/net_node.h b/src/p2p/net_node.h
index cc6a486d3..3f5a5ad93 100644
--- a/src/p2p/net_node.h
+++ b/src/p2p/net_node.h
@@ -227,6 +227,8 @@ namespace nodetool
bool set_rate_down_limit(const boost::program_options::variables_map& vm, int64_t limit);
bool set_rate_limit(const boost::program_options::variables_map& vm, int64_t limit);
+ bool has_too_many_connections(const uint32_t ip);
+
void kill() { ///< will be called e.g. from deinit()
_info("Killing the net_node");
is_closing = true;