diff options
author | Riccardo Spagni <ric@spagni.net> | 2017-01-20 20:54:03 -0500 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2017-01-20 20:54:04 -0500 |
commit | d10425025a0e0c7501d359aa6f738ca2ddddf7d0 (patch) | |
tree | 9468f8035a5a179df154f33947764349f4e60937 /src/p2p/net_node.h | |
parent | Merge pull request #1585 (diff) | |
parent | Reduce to one connection per IP (diff) | |
download | monero-d10425025a0e0c7501d359aa6f738ca2ddddf7d0.tar.xz |
Merge pull request #1572
0e0e6c5f Reduce to one connection per IP (Miguel Herranz)
3f269e98 Limit incoming connections from the same IP (Miguel Herranz)
Diffstat (limited to 'src/p2p/net_node.h')
-rw-r--r-- | src/p2p/net_node.h | 2 |
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; |