[VS] Fix ports columns and minors.

This commit is contained in:
Nicolo Maio 2023-09-08 12:27:32 +02:00
parent c3766e954c
commit 785ed11967
6 changed files with 25 additions and 25 deletions

View file

@ -392,6 +392,10 @@ function vs_utils.save_host_to_scan(scan_type, host, scan_result, last_scan_time
new_item.udp_ports = #udp_ports
end
if (udp_ports == nil and tcp_ports == nil) then
new_item.tcp_ports = num_open_ports
end
if last_scan_time or last_duration then
local time_formatted = format_utils.formatPastEpochShort(last_scan_time)