util/ip.lua
branch0.11
changeset 11653 aa119de5f6c7
parent 9959 c74c89a96cbf
child 11654 a227bc35771e
--- a/util/ip.lua	Thu May 27 12:35:55 2021 +0200
+++ b/util/ip.lua	Sat Jul 03 03:27:57 2021 +0200
@@ -100,7 +100,7 @@
 local function v4scope(ip)
 	if match(ip, loopback4, 8) then
 		return 0x2;
-	elseif match(ip, linklocal4) then
+	elseif match(ip, linklocal4, 16) then
 		return 0x2;
 	else -- Global unicast
 		return 0xE;