We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a45493 commit 9f8c54bCopy full SHA for 9f8c54b
src/netbase.cpp
@@ -41,7 +41,11 @@ enum Network ParseNetwork(std::string net) {
41
boost::to_lower(net);
42
if (net == "ipv4") return NET_IPV4;
43
if (net == "ipv6") return NET_IPV6;
44
- if (net == "tor" || net == "onion") return NET_TOR;
+ if (net == "onion") return NET_TOR;
45
+ if (net == "tor") {
46
+ LogPrintf("Warning: net name 'tor' is deprecated and will be removed in the future. You should use 'onion' instead.\n");
47
+ return NET_TOR;
48
+ }
49
return NET_UNROUTABLE;
50
}
51
0 commit comments