Change calls from Addresses.getIP() to Addresses.getIPOnly() for peer IPs

getIPOnly() is more efficient for pure IP addresses (no hostnames)
This commit is contained in:
zzz
2022-12-20 08:51:29 -05:00
parent fd2af4d89c
commit 903477e905
4 changed files with 7 additions and 7 deletions

View File

@@ -1258,7 +1258,7 @@ class NetDbRenderer {
private static String getAltIPv6(String ip) {
if (ip.contains("::")) {
// convert to expanded
byte[] bip = Addresses.getIP(ip);
byte[] bip = Addresses.getIPOnly(ip);
if (bip != null)
return Addresses.toString(bip);
} else if (ip.contains(":0:")) {