catch (UnknownHostException e) {
throw new RuntimeException(e);
}
}
public static boolean isLocalhost(@NotNull String host) {
<BUG>return host.equalsIgnoreCase("localhost") || host.equals("127.0.0.1");
</BUG>
}
private static boolean canBindToLocalSocket(String host, int port) {
try {

catch (UnknownHostException e) {
throw new RuntimeException(e);
}
}
public static boolean isLocalhost(@NotNull String host) {
return host.equalsIgnoreCase("localhost") || host.equals("127.0.0.1") || host.equals("::1");
}
private static boolean canBindToLocalSocket(String host, int port) {
try {
