jdk/test/java/net/Socks/SocksProxyVersion.java
changeset 20783 c0806cb8d4ae
parent 16737 8f36190e097a
child 23010 6dadb192ad81
--- a/jdk/test/java/net/Socks/SocksProxyVersion.java	Mon Oct 14 10:42:36 2013 +0200
+++ b/jdk/test/java/net/Socks/SocksProxyVersion.java	Mon Oct 14 11:47:54 2013 +0100
@@ -41,6 +41,10 @@
     volatile boolean failed;
 
     public static void main(String[] args) throws Exception {
+        if (InetAddress.getLocalHost().isLoopbackAddress()) {
+            System.out.println("Test cannot run. getLocalHost returns a loopback address");
+            return;
+        }
         new SocksProxyVersion();
     }