summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--toxcore/LAN_discovery.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/toxcore/LAN_discovery.c b/toxcore/LAN_discovery.c
index eb0b95a1..24581845 100644
--- a/toxcore/LAN_discovery.c
+++ b/toxcore/LAN_discovery.c
@@ -191,6 +191,10 @@ int LAN_ip(IP ip)
191 ip4.ip4.uint32 = ip.ip6.uint32[3]; 191 ip4.ip4.uint32 = ip.ip6.uint32[3];
192 return LAN_ip(ip4); 192 return LAN_ip(ip4);
193 } 193 }
194
195 /* localhost in IPv6 (::1) */
196 if (IN6_IS_ADDR_LOOPBACK(&ip.ip6.in6_addr))
197 return 0;
194 } 198 }
195 199
196 return -1; 200 return -1;