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:
Gary Benson 2006-08-29 08:15:29 +00:00 committed by Gary Benson
parent e883464cc4
commit 4c1a4dcda1
3 changed files with 56 additions and 6 deletions

View file

@ -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)