aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--util/ip.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/ip.lua b/util/ip.lua
index d1808225..05c4ca14 100644
--- a/util/ip.lua
+++ b/util/ip.lua
@@ -100,7 +100,7 @@ local ipv6mapped = new_ip("::ffff:0:0");
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;