aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-07-03 17:28:07 +0200
committerKim Alvefur <zash@zash.se>2021-07-03 17:28:07 +0200
commit87167772cab6be6f0e74075d8212347f5e2cc698 (patch)
treeb53e8e8bb65b5551ed752f5a4a0b4c100bd445c9 /util
parent130f74381c9b07ae51dc8e0657909b11fadf6ec0 (diff)
parent59d820880f0421041b72b73d1fe52aa64adce43d (diff)
downloadprosody-87167772cab6be6f0e74075d8212347f5e2cc698.tar.gz
prosody-87167772cab6be6f0e74075d8212347f5e2cc698.zip
Merge 0.11->trunk
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;