From 0181e244394bd9e68e9f0d44704e7b0fd12a6b1f Mon Sep 17 00:00:00 2001 From: Vasil Dimov Date: Mon, 7 Dec 2020 17:24:09 +0100 Subject: net: recognize I2P from ParseNetwork() so that -onlynet=i2p works --- src/netbase.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/netbase.cpp') diff --git a/src/netbase.cpp b/src/netbase.cpp index 7ccd24a778..b09b21c2a1 100644 --- a/src/netbase.cpp +++ b/src/netbase.cpp @@ -51,6 +51,9 @@ enum Network ParseNetwork(const std::string& net_in) { LogPrintf("Warning: net name 'tor' is deprecated and will be removed in the future. You should use 'onion' instead.\n"); return NET_ONION; } + if (net == "i2p") { + return NET_I2P; + } return NET_UNROUTABLE; } -- cgit v1.2.3