mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 14:38:29 +01:00
net: recognize I2P from ParseNetwork() so that -onlynet=i2p works
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user