mirror of
https://github.com/nmap/nmap.git
synced 2026-06-09 17:22:26 +00:00
Allow asn-to-prefix.asn to be a scalar, not a table.
This commit is contained in:
parent
9258c496cd
commit
320f3121bd
1 changed files with 3 additions and 0 deletions
|
|
@ -56,6 +56,9 @@ action = function(host, port)
|
|||
if not whois_port then
|
||||
whois_port = 43
|
||||
end
|
||||
if type(asns) ~= "table" then
|
||||
asns = {asns}
|
||||
end
|
||||
|
||||
for _, asn in ipairs(asns) do
|
||||
local socket = nmap.new_socket()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue