# HG changeset patch # User Kim Alvefur <zash@zash.se> # Date 1555200380 -7200 # Node ID c74c89a96cbf4508eb90d4cb4234ff295583706e # Parent 6402bc76f51a0581ba062c21cd5824df5efa4afb util.ip: Add missing netmask for 192.168/16 range (fixes #1343) diff -r 6402bc76f51a -r c74c89a96cbf util/ip.lua --- a/util/ip.lua Sat Apr 13 18:16:28 2019 +0200 +++ b/util/ip.lua Sun Apr 14 02:06:20 2019 +0200 @@ -203,7 +203,7 @@ 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