mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-09-16 23:24:33 +00:00
Util: Revert change causing failed decode of compressed IPv6 addresses
partial revert of aa77c9a4ab
reported by: bottomlineit.co.za
This commit is contained in:
@@ -624,6 +624,7 @@ public abstract class Addresses {
|
||||
}
|
||||
if (rv == null) {
|
||||
if (isIPAddress(host)) {
|
||||
try {
|
||||
if (host.indexOf('.') > 0) {
|
||||
rv = getIPv4(host);
|
||||
if (rv == null)
|
||||
@@ -633,11 +634,12 @@ public abstract class Addresses {
|
||||
if (rv == null)
|
||||
return null;
|
||||
} else {
|
||||
return null;
|
||||
rv = InetAddress.getByName(host).getAddress();
|
||||
}
|
||||
synchronized (_IPAddress) {
|
||||
_IPAddress.put(host, rv);
|
||||
}
|
||||
} catch (UnknownHostException uhe) {}
|
||||
}
|
||||
}
|
||||
return rv;
|
||||
|
||||
Reference in New Issue
Block a user