1
0
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:
david
2012-02-06 08:20:55 +00:00
parent 9258c496cd
commit 320f3121bd

View File

@@ -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()