Add Customized Categories editor

Also unify the blacklist category handler to use the nDPI API
This commit is contained in:
emanuele-f 2018-10-10 18:40:27 +02:00
parent 38458e6b9c
commit aa1ead94c4
28 changed files with 668 additions and 199 deletions

View file

@ -901,7 +901,7 @@ function isBroadcastMulticast(ip)
end
function isIPv4(address)
local chunks = {address:match("(%d+)%.(%d+)%.(%d+)%.(%d+)$")}
local chunks = {address:match("^(%d+)%.(%d+)%.(%d+)%.(%d+)$")}
if #chunks == 4 then
for _, v in pairs(chunks) do