p2p: add --max-connections-per-ip daemon option

Helps daemons behind a proxy get more than one connection.
Defaults to 1 (no change)
This commit is contained in:
moneromooo-monero
2020-10-11 10:30:45 +00:00
parent c41e087d46
commit d643a865f3
3 changed files with 10 additions and 3 deletions

View File

@@ -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)
{