mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Add Customized Categories editor
Also unify the blacklist category handler to use the nDPI API
This commit is contained in:
parent
38458e6b9c
commit
aa1ead94c4
28 changed files with 668 additions and 199 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue