mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
[VS] Fix tcp ports icons.
This commit is contained in:
parent
7672814a9c
commit
05a099b607
4 changed files with 20 additions and 13 deletions
|
|
@ -1174,6 +1174,7 @@ function vs_utils.retrieve_detected_ports(host)
|
|||
local host_info = interface.getHostInfo(host)
|
||||
|
||||
local tcp_ports_detected = {}
|
||||
local host_in_mem = false
|
||||
if (host_info and host_info.used_ports and host_info.used_ports.local_server_ports) then
|
||||
for port, l7_proto in pairs(host_info.used_ports.local_server_ports) do
|
||||
local port_details = split(port, ":")
|
||||
|
|
@ -1184,9 +1185,10 @@ function vs_utils.retrieve_detected_ports(host)
|
|||
tcp_ports_detected[#tcp_ports_detected+1] = id_port
|
||||
end
|
||||
end
|
||||
host_in_mem = true
|
||||
end
|
||||
|
||||
return tcp_ports_detected
|
||||
return tcp_ports_detected, host_in_mem
|
||||
end
|
||||
|
||||
-- Search port in ports list
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue