I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 2a269ff1 authored by zzz's avatar zzz
Browse files

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

parent 83ccfb45
No related branches found
No related tags found
No related merge requests found
...@@ -124,6 +124,8 @@ public abstract class TransportUtil { ...@@ -124,6 +124,8 @@ public abstract class TransportUtil {
// Assigned to UK Ministry of Defence // Assigned to UK Ministry of Defence
// http://blog.logmein.com/products/changes-to-hamachi-on-november-19th // http://blog.logmein.com/products/changes-to-hamachi-on-november-19th
if (a0 == 25) return false; 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 return true; // or at least possible to be true
} else if (addr.length == 16) { } else if (addr.length == 16) {
if (allowIPv6) { if (allowIPv6) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment