net: recognize I2P from ParseNetwork() so that -onlynet=i2p works

This commit is contained in:
Vasil Dimov
2020-12-07 17:24:09 +01:00
parent b905363fa8
commit 0181e24439
2 changed files with 4 additions and 1 deletions

View File

@@ -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;
}