diff options
Diffstat (limited to 'platform/platform-api/src/com/intellij/util/net/NetUtils.java')
-rw-r--r-- | platform/platform-api/src/com/intellij/util/net/NetUtils.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/platform-api/src/com/intellij/util/net/NetUtils.java b/platform/platform-api/src/com/intellij/util/net/NetUtils.java index eb56e08e4d64..b01d4db1f1cb 100644 --- a/platform/platform-api/src/com/intellij/util/net/NetUtils.java +++ b/platform/platform-api/src/com/intellij/util/net/NetUtils.java @@ -66,7 +66,7 @@ public class NetUtils { } public static boolean isLocalhost(@NotNull String host) { - return host.equalsIgnoreCase("localhost") || host.equals("127.0.0.1"); + return host.equalsIgnoreCase("localhost") || host.equals("127.0.0.1") || host.equals("::1"); } private static boolean canBindToLocalSocket(String host, int port) { |