P2PServer: add connection limits

#87 Added `--out-peers` and `--in-peers` command line options.
This commit is contained in:
SChernykh
2021-12-26 14:59:45 +01:00
parent 7d961ab3b9
commit f1b6212c82
4 changed files with 26 additions and 5 deletions

View File

@@ -40,6 +40,8 @@ static void usage()
"--no-cache Disable p2pool.cache\n"
"--no-color Disable colors in console output\n"
"--no-randomx Disable internal RandomX hasher: p2pool will use RPC calls to monerod to check PoW hashes\n"
"--out-peers Maximum number of outgoing connections for p2p server (any value between 10 and 1000)\n"
"--in-peers Maximum number of incoming connections for p2p server (any value between 10 and 1000)\n"
"--help Show this help message\n\n"
"Example command line:\n\n"
"%s --host 127.0.0.1 --rpc-port 18081 --zmq-port 18083 --wallet YOUR_WALLET_ADDRESS --stratum 0.0.0.0:%d --p2p 0.0.0.0:%d\n\n",