* Transports: Disallow Carrier Grade NAT (RFC 6598) addresses

This commit is contained in:
zzz
2014-06-13 13:39:15 +00:00
parent 83ccfb4596
commit 2a269ff1a9

View File

@ -124,6 +124,8 @@ public abstract class TransportUtil {
// Assigned to UK Ministry of Defence
// http://blog.logmein.com/products/changes-to-hamachi-on-november-19th
if (a0 == 25) return false;
// Carrier Grade NAT RFC 6598
if (a0 == 100 && a1 >= 64 && a1 <= 127) return false;
return true; // or at least possible to be true
} else if (addr.length == 16) {
if (allowIPv6) {