[VS] Fix scan bug and add filtered ports on report

This commit is contained in:
Nicolo Maio 2023-10-09 11:01:21 +02:00
parent 2a834290b0
commit c89018628b
3 changed files with 13 additions and 2 deletions

View file

@ -136,7 +136,7 @@ end
local function format_port_list_to_string(ports)
local scan_ports = ""
if (#ports > 0) then
if (ports ~= nil and #ports > 0) then
for index,port in ipairs(ports) do
if (index == 1) then
scan_ports = ""..port