mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-06 03:45:26 +00:00
Add allowed filters to flow queries
This commit is contained in:
parent
ac7de1bdc6
commit
c272261362
4 changed files with 32 additions and 0 deletions
|
|
@ -158,6 +158,20 @@ tag_utils.defined_tags = {
|
|||
|
||||
-- ##############################################
|
||||
|
||||
function tag_utils.get_tag_filters_from_request()
|
||||
local filters = {}
|
||||
|
||||
for key, value in pairs(tag_utils.defined_tags) do
|
||||
if _GET[key] ~= nil then
|
||||
filters[key] = _GET[key]
|
||||
end
|
||||
end
|
||||
|
||||
return filters
|
||||
end
|
||||
|
||||
-- ##############################################
|
||||
|
||||
--@brief Evaluate operator
|
||||
function tag_utils.eval_op(v1, op, v2)
|
||||
local default_verdict = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue