mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
Reworked blacklists page
This commit is contained in:
parent
cd425b384d
commit
0fecdee1e4
19 changed files with 829 additions and 21 deletions
|
|
@ -88,6 +88,13 @@ local rsp = {}
|
|||
local flows_stats = interface.getFlowsInfo(flows_filter["hostFilter"], flows_filter, flows_filter["talkingWith"],
|
||||
flows_filter["client"], flows_filter["server"], flows_filter["flow_info"])
|
||||
|
||||
if not flows_stats then
|
||||
rest_utils.extended_answer(rest_utils.consts.success.ok, {}, {
|
||||
["recordsTotal"] = 0
|
||||
})
|
||||
return
|
||||
end
|
||||
|
||||
for _, value in ipairs(flows_stats.flows) do
|
||||
local record = {}
|
||||
local key = value["ntopng.key"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue