From 320f3121bd338584b340842379b97f32cd517878 Mon Sep 17 00:00:00 2001 From: david Date: Mon, 6 Feb 2012 08:20:55 +0000 Subject: [PATCH] Allow asn-to-prefix.asn to be a scalar, not a table. --- scripts/asn-to-prefix.nse | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/asn-to-prefix.nse b/scripts/asn-to-prefix.nse index f4792c12e..48a2a6926 100644 --- a/scripts/asn-to-prefix.nse +++ b/scripts/asn-to-prefix.nse @@ -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()