mirror of
https://github.com/nmap/nmap.git
synced 2026-01-05 22:19:03 +00:00
Gets arguments with stdnse.get_script_args instead of reading them from nmap.registry
This commit is contained in:
@@ -42,7 +42,7 @@ end
|
||||
action = function( host, port )
|
||||
|
||||
local INFO = "i"
|
||||
local maxfiles = nmap.registry.args[SCRIPT_NAME .. ".maxfiles"]
|
||||
local maxfiles = stdnse.get_script_args(SCRIPT_NAME..".maxfiles")
|
||||
if not maxfiles then
|
||||
maxfiles = 10
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user