util/ip.lua
changeset 11654 a227bc35771e
parent 10597 079b31c8dbf2
parent 11653 aa119de5f6c7
child 12359 a0ff5c438e9d
--- a/util/ip.lua	Sat Jul 03 04:35:29 2021 +0200
+++ b/util/ip.lua	Sat Jul 03 17:28:07 2021 +0200
@@ -106,7 +106,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;