aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-04-14 02:06:20 +0200
committerKim Alvefur <zash@zash.se>2019-04-14 02:06:20 +0200
commit5f425e05a733d64ffb56644045a7e53b83ac1ac8 (patch)
tree59cbe75cb526a72c0fee16fbebf43c1b9aebe092 /util
parent5a7cfba3ddda58b6638c2ffb478e948bcbb064fa (diff)
downloadprosody-5f425e05a733d64ffb56644045a7e53b83ac1ac8.tar.gz
prosody-5f425e05a733d64ffb56644045a7e53b83ac1ac8.zip
util.ip: Add missing netmask for 192.168/16 range (fixes #1343)
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 0ec9e297..d1808225 100644
--- a/util/ip.lua
+++ b/util/ip.lua
@@ -203,7 +203,7 @@ local rfc6598 = new_ip("100.64.0.0");
function ip_methods:private()
local private = self.scope ~= 0xE;
if not private and self.proto == "IPv4" then
- return match(self, rfc1918_8, 8) or match(self, rfc1918_12, 12) or match(self, rfc1918_16) or match(self, rfc6598, 10);
+ return match(self, rfc1918_8, 8) or match(self, rfc1918_12, 12) or match(self, rfc1918_16, 16) or match(self, rfc6598, 10);
end
return private;
end