mirror of
https://github.com/nmap/nmap.git
synced 2026-08-27 03:48:14 +00:00
Correct location of rules declaration.
This commit is contained in:
parent
a20ea34d38
commit
1ac2728821
1 changed files with 1 additions and 1 deletions
|
|
@ -94,13 +94,13 @@ portrule = shortport.port_or_service(3306, "mysql")
|
|||
local TEMPLATE_NAME, ADMIN_ACCOUNTS = "", ""
|
||||
|
||||
local function loadAuditRulebase( filename )
|
||||
local rules = {}
|
||||
|
||||
local env = setmetatable({
|
||||
test = function(t) table.insert(rules, t) end;
|
||||
}, {__index = _G})
|
||||
|
||||
local file, err = loadfile(filename, "t", env)
|
||||
local rules = {}
|
||||
|
||||
if ( not(file) ) then
|
||||
return false, ("ERROR: Failed to load rulebase:\n%s"):format(err)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue