aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/ip.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/ip.lua b/util/ip.lua
index d039e475..20b92466 100644
--- a/util/ip.lua
+++ b/util/ip.lua
@@ -106,7 +106,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;