mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Fix glitches in alerted flows. (#8302)
This commit is contained in:
parent
8a251c95cc
commit
6906011d7a
2 changed files with 14 additions and 3 deletions
|
|
@ -1732,7 +1732,14 @@ function historical_flow_utils.getHistoricalProtocolLabel(record, add_hyperlinks
|
|||
end
|
||||
|
||||
if info.l7cat then
|
||||
label = label .. " (" ..historical_flow_utils.get_historical_url(info.l7cat.label, "l7cat", info.l7cat.value, add_hyperlinks) .. ")"
|
||||
local blacklist_name = ""
|
||||
if (info.l7cat.label == 'Malware') then
|
||||
local json_info = json.decode(info.json)
|
||||
if (json_info and json_info.custom_cat_file) then
|
||||
blacklist_name = " @ " ..json_info.custom_cat_file
|
||||
end
|
||||
end
|
||||
label = label .. " (" ..historical_flow_utils.get_historical_url(info.l7cat.label, "l7cat", info.l7cat.value, add_hyperlinks) .. blacklist_name .. ")"
|
||||
end
|
||||
|
||||
if (alert_json.proto) and (alert_json.proto.confidence) and (not isEmptyString(alert_json.proto.confidence)) then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue