mirror of
https://github.com/nmap/nmap.git
synced 2025-12-15 20:29:03 +00:00
Fixed bug that would make the script crash if no domain argument was specified.
This commit is contained in:
@@ -58,11 +58,11 @@ require 'dns'
|
||||
require 'tab'
|
||||
require 'target'
|
||||
|
||||
prerule = function() return true end
|
||||
|
||||
local arg_domain = stdnse.get_script_args(SCRIPT_NAME .. ".domain")
|
||||
local arg_filter = stdnse.get_script_args(SCRIPT_NAME .. ".filter")
|
||||
|
||||
prerule = function() return not(not(arg_domain)) end
|
||||
|
||||
local function parseSvcList(services)
|
||||
local i = 1
|
||||
return function()
|
||||
|
||||
Reference in New Issue
Block a user