diff options
-rw-r--r-- | toxcore/LAN_discovery.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/toxcore/LAN_discovery.c b/toxcore/LAN_discovery.c index 0f237cca..eadec9ec 100644 --- a/toxcore/LAN_discovery.c +++ b/toxcore/LAN_discovery.c | |||
@@ -176,6 +176,11 @@ int LAN_ip(IP ip) | |||
176 | && ip4.uint8[2] != 255) | 176 | && ip4.uint8[2] != 255) |
177 | return 0; | 177 | return 0; |
178 | 178 | ||
179 | /* RFC 6598: 100.64.0.0 to 100.127.255.255 (100.64.0.0/10) | ||
180 | * (shared address space to stack another layer of NAT) */ | ||
181 | if ((ip4.uint8[0] == 100) && ((ip4.uint8[1] & 0xC0) == 0x40)) | ||
182 | return 0; | ||
183 | |||
179 | } else if (ip.family == AF_INET6) { | 184 | } else if (ip.family == AF_INET6) { |
180 | 185 | ||
181 | /* autogenerated for each interface: FE80::* (up to FEBF::*) | 186 | /* autogenerated for each interface: FE80::* (up to FEBF::*) |