* UDP: Fix i2np.udp.allowLocal operation (thx Quizzers)

This commit is contained in:
zzz
2011-12-04 18:50:40 +00:00
parent 88e7d60e3e
commit 489a0ead14

View File

@@ -1105,7 +1105,7 @@ public class UDPTransport extends TransportImpl implements TimedWeightedPriority
}
if (ua.getIntroducerCount() <= 0) {
InetAddress ia = ua.getHostAddress();
if (ua.getPort() <= 0 || ia == null || !isPubliclyRoutable(ia.getAddress())) {
if (ua.getPort() <= 0 || ia == null || !isValid(ia.getAddress())) {
markUnreachable(to);
return null;
}