提交 22468b4a 编写于 作者: T tyan

8023555: test/java/net/Socks/SocksProxyVersion.java fails when machine name is localhost

Reviewed-by: chegar, alanb
上级 113e6ae3
......@@ -41,6 +41,10 @@ public class SocksProxyVersion implements Runnable {
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();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册