mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 14:38:29 +01:00
use "IPv6" and "IPv4" in strings as these are the official spellings and make ParseNetwork() in netbase.cpp case-insensitive
This commit is contained in:
@@ -1796,7 +1796,7 @@ void static Discover()
|
||||
struct sockaddr_in* s4 = (struct sockaddr_in*)(ifa->ifa_addr);
|
||||
CNetAddr addr(s4->sin_addr);
|
||||
if (AddLocal(addr, LOCAL_IF))
|
||||
printf("ipv4 %s: %s\n", ifa->ifa_name, addr.ToString().c_str());
|
||||
printf("IPv4 %s: %s\n", ifa->ifa_name, addr.ToString().c_str());
|
||||
}
|
||||
#ifdef USE_IPV6
|
||||
else if (ifa->ifa_addr->sa_family == AF_INET6)
|
||||
@@ -1804,7 +1804,7 @@ void static Discover()
|
||||
struct sockaddr_in6* s6 = (struct sockaddr_in6*)(ifa->ifa_addr);
|
||||
CNetAddr addr(s6->sin6_addr);
|
||||
if (AddLocal(addr, LOCAL_IF))
|
||||
printf("ipv6 %s: %s\n", ifa->ifa_name, addr.ToString().c_str());
|
||||
printf("IPv6 %s: %s\n", ifa->ifa_name, addr.ToString().c_str());
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user