2006-08-29 Gary Benson <gbenson@redhat.com>
* java/net/SocketPermission.java (maybeBracketIPv6Address): New method. (<init>): Pass the hostport argument through the above. * java/net/NetworkInterface.java (getInetAddresses): Revert the previous change. From-SVN: r116557
This commit is contained in:
parent
e883464cc4
commit
4c1a4dcda1
3 changed files with 56 additions and 6 deletions
|
@ -112,10 +112,7 @@ public final class NetworkInterface
|
|||
InetAddress addr = (InetAddress) addresses.nextElement();
|
||||
try
|
||||
{
|
||||
String hostAddress = addr.getHostAddress();
|
||||
if (addr instanceof Inet6Address)
|
||||
hostAddress = "[" + hostAddress + "]";
|
||||
s.checkConnect(hostAddress, 58000);
|
||||
s.checkConnect(addr.getHostAddress(), 58000);
|
||||
tmpInetAddresses.add(addr);
|
||||
}
|
||||
catch (SecurityException e)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue