mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-03 09:20:10 +00:00
Added nDPI fingerprint to historical flows (#9961)
This commit is contained in:
parent
10bab95b16
commit
a7eab7b697
4 changed files with 45 additions and 1 deletions
|
|
@ -1312,6 +1312,18 @@ function format_http_info(http_info, no_html)
|
|||
return formatted_http_info
|
||||
end
|
||||
|
||||
function format_fingerprints_info(fingerprint_info)
|
||||
local formatted_fingerprints_info = {}
|
||||
if fingerprint_info["ndpi_fingerprint"] then
|
||||
formatted_fingerprints_info["ndpi_fingerprint"] =
|
||||
i18n("copy_button", {
|
||||
full_name = fingerprint_info["ndpi_fingerprint"],
|
||||
name = fingerprint_info["ndpi_fingerprint"]
|
||||
})
|
||||
end
|
||||
return formatted_fingerprints_info
|
||||
end
|
||||
|
||||
-- ##############################################
|
||||
|
||||
function format_proto_info(flow_details, proto_info)
|
||||
|
|
@ -1321,6 +1333,12 @@ function format_proto_info(flow_details, proto_info)
|
|||
if type(value) ~= "table" then proto_info[key] = nil end
|
||||
end
|
||||
|
||||
for proto, info in pairs(proto_info or {}) do
|
||||
if proto == "fingerprints" then
|
||||
proto_details[proto] = format_fingerprints_info(info)
|
||||
end
|
||||
end
|
||||
|
||||
for proto, info in pairs(proto_info or {}) do
|
||||
if proto == "tls" then
|
||||
proto_details[proto] = format_tls_info(info)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue