mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Fixes #1030
This commit is contained in:
parent
5b9b49f593
commit
c85838a62d
1 changed files with 9 additions and 1 deletions
|
|
@ -397,7 +397,15 @@ local ndpi_categories = interface.getnDPICategories()
|
|||
local site_categories = ntop.getSiteCategories()
|
||||
|
||||
local function validateApplication(app)
|
||||
return validateChoiceByKeys(ndpi_protos, app)
|
||||
local dot = string.find(app, "%.")
|
||||
|
||||
if dot ~= nil then
|
||||
local master = string.sub(app, 1, dot-1)
|
||||
local sub = string.sub(app, dot+1)
|
||||
return validateChoiceByKeys(ndpi_protos, master) and validateChoiceByKeys(ndpi_protos, sub)
|
||||
else
|
||||
return validateChoiceByKeys(ndpi_protos, app)
|
||||
end
|
||||
end
|
||||
|
||||
local function validateProtocolId(p)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue