mirror of
https://github.com/nmap/nmap.git
synced 2026-01-07 23:19:02 +00:00
Remove many ERROR outputs from non-debug NSE output
This commit is contained in:
@@ -330,12 +330,10 @@ local get_addresses = function(address, mask, domain, nameserver, port)
|
||||
return resp
|
||||
end
|
||||
|
||||
local function fail(err) return ("\n ERROR: %s"):format(err or "") end
|
||||
|
||||
action = function(host, port)
|
||||
|
||||
if ( not(argDomain) ) then
|
||||
return fail(SCRIPT_NAME .. ".domain was not specified")
|
||||
return stdnse.format_output(false, SCRIPT_NAME .. ".domain was not specified")
|
||||
end
|
||||
|
||||
local nameserver = (host and host.ip) or argNS
|
||||
|
||||
Reference in New Issue
Block a user