mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 15:09:59 +01:00
scripted-diff: Replace NET_TOR with NET_ONION
-BEGIN VERIFY SCRIPT- sed --in-place'' --expression='s/NET_TOR/NET_ONION/g' $(git grep -I --files-with-matches 'NET_TOR') -END VERIFY SCRIPT- The --in-place'' hack is required for sed on macOS to edit files in-place without passing a backup extension.
This commit is contained in:
@@ -41,10 +41,10 @@ enum Network ParseNetwork(std::string net) {
|
||||
boost::to_lower(net);
|
||||
if (net == "ipv4") return NET_IPV4;
|
||||
if (net == "ipv6") return NET_IPV6;
|
||||
if (net == "onion") return NET_TOR;
|
||||
if (net == "onion") return NET_ONION;
|
||||
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_ONION;
|
||||
}
|
||||
return NET_UNROUTABLE;
|
||||
}
|
||||
@@ -54,7 +54,7 @@ std::string GetNetworkName(enum Network net) {
|
||||
{
|
||||
case NET_IPV4: return "ipv4";
|
||||
case NET_IPV6: return "ipv6";
|
||||
case NET_TOR: return "onion";
|
||||
case NET_ONION: return "onion";
|
||||
default: return "";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user