mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
Added ifid param to rest/get/alert/data.lua
This commit is contained in:
parent
9dbff41aa0
commit
79c8da25d8
2 changed files with 16 additions and 0 deletions
|
|
@ -14,8 +14,16 @@ local json = require "dkjson"
|
|||
|
||||
sendHTTPHeader('application/json')
|
||||
|
||||
local ifid = _GET["ifid"]
|
||||
local status = _GET["status"]
|
||||
|
||||
local if_name = nil
|
||||
if not isEmptyString(ifid) then
|
||||
if_name = getInterfaceName(ifid)
|
||||
end
|
||||
|
||||
interface.select(if_name)
|
||||
|
||||
local engaged = false
|
||||
if status == "engaged" then
|
||||
engaged = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue