summaryrefslogtreecommitdiff
path: root/toxcore/LAN_discovery.c
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/LAN_discovery.c')
-rw-r--r--toxcore/LAN_discovery.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/LAN_discovery.c b/toxcore/LAN_discovery.c
index e23550df..3f6951fc 100644
--- a/toxcore/LAN_discovery.c
+++ b/toxcore/LAN_discovery.c
@@ -331,7 +331,7 @@ bool ip_is_lan(IP ip)
331 331
332 if (net_family_is_ipv6(ip.family)) { 332 if (net_family_is_ipv6(ip.family)) {
333 /* autogenerated for each interface: `FE80::*` (up to `FEBF::*`) 333 /* autogenerated for each interface: `FE80::*` (up to `FEBF::*`)
334 `FF02::1` is - according to RFC 4291 - multicast all-nodes link-local */ 334 * `FF02::1` is - according to RFC 4291 - multicast all-nodes link-local */
335 if (((ip.ip.v6.uint8[0] == 0xFF) && (ip.ip.v6.uint8[1] < 3) && (ip.ip.v6.uint8[15] == 1)) || 335 if (((ip.ip.v6.uint8[0] == 0xFF) && (ip.ip.v6.uint8[1] < 3) && (ip.ip.v6.uint8[15] == 1)) ||
336 ((ip.ip.v6.uint8[0] == 0xFE) && ((ip.ip.v6.uint8[1] & 0xC0) == 0x80))) { 336 ((ip.ip.v6.uint8[0] == 0xFE) && ((ip.ip.v6.uint8[1] & 0xC0) == 0x80))) {
337 return true; 337 return true;