aboutsummaryrefslogtreecommitdiffstats
path: root/node-repository
diff options
context:
space:
mode:
authorValerij Fredriksen <freva@users.noreply.github.com>2024-06-11 11:03:15 +0200
committerGitHub <noreply@github.com>2024-06-11 11:03:15 +0200
commit12150d28d136f5e3f2fae5acc551a5af0e7a9af3 (patch)
tree340fc1dc4ab4b9ae54f6b9cfc4f0d73771a12b9c /node-repository
parent7577f46cfdbfcf69e04c3b0ad690bf01f8f0c365 (diff)
parent17b434a011b10d0525e1735b91051ecb356b794a (diff)
Merge pull request #31524 from vespa-engine/hakonhall/wrap-guavas-toaddrstring-as-it-now-may-contain-the-interface
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 */