InetAddress.java (loopbackAddress): Renamed from localhostAddress.
2004-08-13 Bryce McKinlay <mckinlay@redhat.com> * java/net/InetAddress.java (loopbackAddress): Renamed from localhostAddress. (getByName): Return loopback address for null hostname, without security check. Use lookup(), not getAllByName. (getAllByName): Return loopback address for null hostname, without security check. * java/net/natInetAddressPosix.cc (lookup): Don't perform security check here. From-SVN: r85967
This commit is contained in:
parent
1ef02b9de5
commit
d7945fafe3
3 changed files with 33 additions and 18 deletions
|
@ -229,13 +229,6 @@ java::net::InetAddress::lookup (jstring host, java::net::InetAddress* iaddr,
|
|||
{
|
||||
if (!all)
|
||||
host = JvNewStringUTF (hptr->h_name);
|
||||
java::lang::SecurityException *ex = checkConnect (host);
|
||||
if (ex != NULL)
|
||||
{
|
||||
if (iaddr == NULL || iaddr->addr == NULL)
|
||||
throw ex;
|
||||
hptr = NULL;
|
||||
}
|
||||
}
|
||||
if (hptr == NULL)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue