mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-10-22 21:53:43 +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:
1 file changed
+3
-1
@@ -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