mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
Relocate a local among other constants/configurations.
This commit is contained in:
parent
583f65227c
commit
52a0bf19b8
1 changed files with 8 additions and 8 deletions
16
nse_main.lua
16
nse_main.lua
|
|
@ -49,6 +49,14 @@ local SELECTED_BY_NAME = "NSE_SELECTED_BY_NAME";
|
|||
-- count worker threads started by scripts.
|
||||
local CONCURRENCY_LIMIT = 1000;
|
||||
|
||||
-- Table of different supported rules.
|
||||
local NSE_SCRIPT_RULES = {
|
||||
prerule = "prerule",
|
||||
hostrule = "hostrule",
|
||||
portrule = "portrule",
|
||||
postrule = "postrule",
|
||||
};
|
||||
|
||||
local _G = _G;
|
||||
|
||||
local assert = assert;
|
||||
|
|
@ -124,14 +132,6 @@ local stdnse = require "stdnse";
|
|||
-- differentiate between yields initiated by NSE or regular coroutine yields.
|
||||
local NSE_YIELD_VALUE = {};
|
||||
|
||||
-- Table of different supported rules.
|
||||
local NSE_SCRIPT_RULES = {
|
||||
prerule = "prerule",
|
||||
hostrule = "hostrule",
|
||||
portrule = "portrule",
|
||||
postrule = "postrule",
|
||||
};
|
||||
|
||||
do
|
||||
-- This is the method by which we allow a script to have nested
|
||||
-- coroutines. If a sub-thread yields in an NSE function such as
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue