# HG changeset patch # User Kim Alvefur # Date 1512095497 -3600 # Node ID 499663bd0122e88ab95796480bf73b9d518c3c5e # Parent 021129f7b0a393a83f12b4061e6e2978c2e213c2 util.ip: Do exact match for longer bit counts than available diff -r 021129f7b0a3 -r 499663bd0122 util/ip.lua --- a/util/ip.lua Fri Dec 01 03:29:25 2017 +0100 +++ b/util/ip.lua Fri Dec 01 03:31:37 2017 +0100 @@ -228,7 +228,7 @@ end function match(ipA, ipB, bits) - if not bits then + if not bits or bits >= 128 or ipB.proto == "IPv4" and bits >= 32 then return ipA == ipB; elseif bits < 1 then return true;