mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-08 10:31:50 -05:00
Log warning message when deprecated network name 'tor' is used (e.g. option onlynet=tor)
This commit is contained in:
parent
3a4549301a
commit
9f8c54b1b5
1 changed files with 5 additions and 1 deletions
|
@ -41,7 +41,11 @@ enum Network ParseNetwork(std::string net) {
|
|||
boost::to_lower(net);
|
||||
if (net == "ipv4") return NET_IPV4;
|
||||
if (net == "ipv6") return NET_IPV6;
|
||||
if (net == "tor" || net == "onion") return NET_TOR;
|
||||
if (net == "onion") return NET_TOR;
|
||||
if (net == "tor") {
|
||||
LogPrintf("Warning: net name 'tor' is deprecated and will be removed in the future. You should use 'onion' instead.\n");
|
||||
return NET_TOR;
|
||||
}
|
||||
return NET_UNROUTABLE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue