Merge branch '3.1.x'
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user