diff options
author | Vasil Dimov <vd@FreeBSD.org> | 2020-12-07 17:24:09 +0100 |
---|---|---|
committer | Vasil Dimov <vd@FreeBSD.org> | 2021-03-01 18:19:47 +0100 |
commit | 0181e244394bd9e68e9f0d44704e7b0fd12a6b1f (patch) | |
tree | dfa5087ee8f6221815c7846f6844513546d4639e /src/netbase.cpp | |
parent | b905363fa8b0bb03fe34b53b5410880f42e0af39 (diff) |
net: recognize I2P from ParseNetwork() so that -onlynet=i2p works
Diffstat (limited to 'src/netbase.cpp')
-rw-r--r-- | src/netbase.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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; } |