From dd1453422ba94358ba8818c42b2c14803d852a26 Mon Sep 17 00:00:00 2001 From: Duke Leto Date: Mon, 1 Mar 2021 16:51:39 -0500 Subject: [PATCH] Add some p2p CLI options --- src/net.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/net.cpp b/src/net.cpp index e2e7e71a7..c03e2da05 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -76,10 +76,9 @@ using namespace hush; using namespace std; namespace { - //TODO: Make these CLI args - const int MAX_OUTBOUND_CONNECTIONS = 64; - const int MAX_FEELER_CONNECTIONS = 1; - const int MAX_INBOUND_FROMIP = 3; + int MAX_OUTBOUND_CONNECTIONS = GetArg("-maxoutboundconnections",64); + int MAX_FEELER_CONNECTIONS = GetArg("-maxfeelerconnections",1); + int MAX_INBOUND_FROMIP = GetArg("-maxinboundfromip",3); struct ListenSocket { SOCKET socket;