mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
Fix missing CVE scores (#7901)
This commit is contained in:
parent
525463c55e
commit
c9d7c5fb0e
2 changed files with 11 additions and 1 deletions
|
|
@ -217,11 +217,15 @@ local function format_result(result)
|
|||
end
|
||||
rsp[#rsp].host_in_mem = host_in_mem
|
||||
end
|
||||
|
||||
if (rsp[#rsp].cve ~= nil) then
|
||||
table.sort(rsp[#rsp].cve, function (k1, k2) return split(k1,"|")[2] < split(k2,"|")[2] end)
|
||||
end
|
||||
end
|
||||
|
||||
if not isEmptyString(sort) and sort == 'ip' then
|
||||
table.sort(rsp, compare_host)
|
||||
end
|
||||
end
|
||||
end
|
||||
return rsp
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue