diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2020-10-11 10:30:45 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2021-02-15 19:08:07 +0000 |
commit | d643a865f38fd8f5c6d8dd06bfb99c33eef3f5fd (patch) | |
tree | 78a66616cb00b2c4f5b3543839a05dd86b2c04bd /src/p2p/net_node.cpp | |
parent | Merge pull request #6900 (diff) | |
download | monero-d643a865f38fd8f5c6d8dd06bfb99c33eef3f5fd.tar.xz |
p2p: add --max-connections-per-ip daemon option
Helps daemons behind a proxy get more than one connection.
Defaults to 1 (no change)
Diffstat (limited to '')
-rw-r--r-- | src/p2p/net_node.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/p2p/net_node.cpp b/src/p2p/net_node.cpp index 8dd551d1e..84cc1581e 100644 --- a/src/p2p/net_node.cpp +++ b/src/p2p/net_node.cpp @@ -166,6 +166,7 @@ namespace nodetool const command_line::arg_descriptor<bool> arg_pad_transactions = { "pad-transactions", "Pad relayed transactions to help defend against traffic volume analysis", false }; + const command_line::arg_descriptor<uint32_t> arg_max_connections_per_ip = {"max-connections-per-ip", "Maximum number of connections allowed from the same IP address", 1}; boost::optional<std::vector<proxy>> get_proxies(boost::program_options::variables_map const& vm) { |