From e4f5fae4e73965d1160fb637f50269084e761c76 Mon Sep 17 00:00:00 2001 From: MatteoBiscosi Date: Mon, 30 May 2022 18:05:55 +0200 Subject: [PATCH] Removed empty protocol info --- scripts/lua/modules/historical_flow_details_formatter.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/lua/modules/historical_flow_details_formatter.lua b/scripts/lua/modules/historical_flow_details_formatter.lua index b23d104bdf..55a8e29d5c 100644 --- a/scripts/lua/modules/historical_flow_details_formatter.lua +++ b/scripts/lua/modules/historical_flow_details_formatter.lua @@ -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