1
0
mirror of https://github.com/nmap/nmap.git synced 2026-02-13 08:56:34 +00:00

Gets arguments with stdnse.get_script_args() instead of reading them from nmap.registry

This commit is contained in:
paulino
2011-07-27 03:24:17 +00:00
parent 01088b879f
commit 0e9a3e994d

View File

@@ -1655,8 +1655,8 @@ function get_args()
args = nmap.registry.args.whois.whodb
elseif nmap.registry.args.whodb then
args = nmap.registry.args.whodb
elseif nmap.registry.args['whois.whodb'] then
args = nmap.registry.args['whois.whodb']
elseif stdnse.get_script_args('whois.whodb') then
args = stdnse.get_script_args('whois.whodb')
else return
end