[VS] Fix tcp ports icons.

This commit is contained in:
Nicolo Maio 2023-10-07 11:37:28 +02:00
parent 7672814a9c
commit 05a099b607
4 changed files with 20 additions and 13 deletions

View file

@ -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