Merge branch '3.1.x'

This commit is contained in:
spencergibb
2023-03-09 15:19:01 -05:00

View File

@@ -55,7 +55,7 @@ public final class ConsulServerUtils {
try {
InetAddress inetAdr = InetAddress.getByName(address);
if (inetAdr instanceof Inet6Address) {
return "[" + inetAdr.getHostName() + "]";
return "[" + inetAdr.getHostAddress() + "]";
}
return address;
}