Skip to content

Commit b45eae4

Browse files
committed
net: update NET_UNROUTABLE to not_publicly_routable in GetNetworkName()
1 parent 2c0fc85 commit b45eae4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/netbase.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ enum Network ParseNetwork(const std::string& net_in) {
5555
std::string GetNetworkName(enum Network net)
5656
{
5757
switch (net) {
58-
case NET_UNROUTABLE: return "unroutable";
58+
case NET_UNROUTABLE: return "not_publicly_routable";
5959
case NET_IPV4: return "ipv4";
6060
case NET_IPV6: return "ipv6";
6161
case NET_ONION: return "onion";

test/functional/feature_proxy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444

4545
RANGE_BEGIN = PORT_MIN + 2 * PORT_RANGE # Start after p2p and rpc ports
4646

47-
# Networks returned by RPC getpeerinfo, defined in src/netbase.cpp::GetNetworkName()
48-
NET_UNROUTABLE = "unroutable"
47+
# Networks returned by RPC getpeerinfo.
48+
NET_UNROUTABLE = "not_publicly_routable"
4949
NET_IPV4 = "ipv4"
5050
NET_IPV6 = "ipv6"
5151
NET_ONION = "onion"

0 commit comments

Comments
 (0)