mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
Possibly fixes issue #6677
This commit is contained in:
parent
8ddf0e6998
commit
e8b63b76f2
2 changed files with 14 additions and 6 deletions
|
|
@ -5258,6 +5258,8 @@ end
|
|||
-- ##############################################
|
||||
|
||||
function format_proto_info(proto_info)
|
||||
local proto_details = {}
|
||||
|
||||
for key, value in pairs(proto_info) do
|
||||
if type(value) ~= "table" then
|
||||
proto_info[key] = nil
|
||||
|
|
@ -5266,17 +5268,19 @@ function format_proto_info(proto_info)
|
|||
|
||||
for proto, info in pairs(proto_info) do
|
||||
if proto == "tls" then
|
||||
info = format_tls_info(info)
|
||||
proto_details[proto] = format_tls_info(info)
|
||||
elseif proto == "dns" then
|
||||
info = format_dns_query_info(info)
|
||||
proto_details[proto] = format_dns_query_info(info)
|
||||
elseif proto == "http" then
|
||||
info = format_http_info(info)
|
||||
proto_details[proto] = format_http_info(info)
|
||||
elseif proto == "icmp" then
|
||||
info = format_icmp_info(info)
|
||||
proto_details[proto] = format_icmp_info(info)
|
||||
end
|
||||
|
||||
break
|
||||
end
|
||||
|
||||
return proto_info
|
||||
return proto_details
|
||||
end
|
||||
|
||||
-- ##############################################
|
||||
|
|
@ -5353,7 +5357,7 @@ end
|
|||
|
||||
function get_confidence(confidence_id, shorten_string)
|
||||
local tag_utils = require "tag_utils"
|
||||
local confidence_name = nil
|
||||
local confidence_name = confidence_id
|
||||
|
||||
if confidence_id and tonumber(confidence_id) then
|
||||
confidence_id = tonumber(confidence_id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue