2006/10/24, Fedotov, Alexei A <[EMAIL PROTECTED]>:
I wonder about the first option. Is there any way to check that symbolic name corresponds to the local computer? I can imagine the following condition to check this.InetAddress.getByName(InetAddress.getByName("127.0.0.1").getHostName()). isLoopbackAddress()
This test failed because isLoopbackAddress() expected 127.X.X.X 2006/10/24, Fedotov, Alexei A <[EMAIL PROTECTED]>:
Andrew, I agree that test should be fixed. I suggested using one of the following checks to validate that the host is localhost. InetAddress.getByName(host).isLoopbackAddress() InetAddress.getByName(host).isSiteLocalAddress()
It's possible but it will be another test IMHO +1 exclude this test (not whole test but localhost check)
