mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 08:46:45 +00:00
iscsi-info.nse: Allow multiple iSCSI target addresses
This commit is contained in:
parent
532938f49c
commit
5fd15b4652
1 changed files with 6 additions and 1 deletions
|
|
@ -90,7 +90,12 @@ action = function( host, port )
|
|||
for _, record in ipairs(records) do
|
||||
local result_part = stdnse.output_table()
|
||||
for _, addr in ipairs( record.addr ) do
|
||||
result_part["Address"] = addr
|
||||
local value = result_part["Address"]
|
||||
if (value == nil) then
|
||||
result_part["Address"] = addr
|
||||
else
|
||||
result_part["Address"] = value .. " & " .. addr
|
||||
end
|
||||
end
|
||||
|
||||
local status, err = requiresAuth( host, port, record.name )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue