mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-28 23:19:33 +00:00
Fixes json still in the webhook alert
This commit is contained in:
parent
8ee9799865
commit
c3f8a468f4
1 changed files with 3 additions and 0 deletions
|
|
@ -99,6 +99,9 @@ local function formatAlertMsg(alert)
|
|||
local decoded_alert = json.decode(alert)
|
||||
if decoded_alert and decoded_alert.json then
|
||||
local json_decoded = json.decode(decoded_alert.json)
|
||||
if json_decoded and json_decoded.flow_risk_info then
|
||||
json_decoded.flow_risk_info = json.decode(json_decoded.flow_risk_info)
|
||||
end
|
||||
decoded_alert.json = json_decoded
|
||||
decoded_alert.metadata = {}
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue