mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Removed empty protocol info
This commit is contained in:
parent
3867b03978
commit
e4f5fae4e7
1 changed files with 3 additions and 0 deletions
|
|
@ -313,6 +313,9 @@ function historical_flow_details_formatter.formatHistoricalFlowDetails(flow)
|
|||
local alert_json = json.decode(flow["ALERT_JSON"] or '') or {}
|
||||
if table.len(alert_json["proto"]) > 0 then
|
||||
flow_details[#flow_details + 1] = format_historical_proto_info(alert_json["proto"])
|
||||
if table.len(flow_details[#flow_details]['content']) == 0 then
|
||||
table.remove(flow_details, #flow_details)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue