mirror of
https://github.com/nmap/nmap.git
synced 2026-01-01 12:29:03 +00:00
Allow asn-to-prefix.asn to be a scalar, not a table.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user