aboutsummaryrefslogtreecommitdiffstats
path: root/node-repository
diff options
context:
space:
mode:
authorHåkon Hallingstad <hakon@yahooinc.com>2024-06-11 10:22:20 +0200
committerHåkon Hallingstad <hakon@yahooinc.com>2024-06-11 10:22:20 +0200
commit17b434a011b10d0525e1735b91051ecb356b794a (patch)
tree3db1396f08763e7cbb63149c9b223c7deb0fe558 /node-repository
parentd087ecfe9a280cf011471184f8e39e2bfafa4dde (diff)
Wrap Guavas toAddrString as it now may contain the interface
Diffstat (limited to 'node-repository')
-rw-r--r--node-repository/src/main/java/com/yahoo/vespa/hosted/provision/node/IP.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/node/IP.java b/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/node/IP.java
index ce641b5d650..07a36cf00f2 100644
--- a/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/node/IP.java
+++ b/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/node/IP.java
@@ -1,6 +1,7 @@
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.provision.node;
+import ai.vespa.net.InetAddressUtil;
import com.google.common.net.InetAddresses;
import com.yahoo.config.provision.CloudAccount;
import com.yahoo.config.provision.CloudName;
@@ -452,7 +453,7 @@ public record IP() {
/** Convert IP address to string. This uses :: for zero compression in IPv6 addresses. */
public static String asString(InetAddress inetAddress) {
- return InetAddresses.toAddrString(inetAddress);
+ return InetAddressUtil.toString(inetAddress);
}
/** Returns whether given string is an IPv4 address */