mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Remove nmap.sleep as we just want to have stdnse.sleep.
This commit is contained in:
parent
7e85545ea3
commit
036d28c898
2 changed files with 1 additions and 5 deletions
|
|
@ -939,7 +939,6 @@ int luaopen_nmap (lua_State *L)
|
|||
{"new_dnet", nseU_placeholder}, /* imported from nmap.dnet */
|
||||
{"get_interface_info", nseU_placeholder}, /* imported from nmap.dnet */
|
||||
{"new_socket", nseU_placeholder}, /* imported from nmap.socket */
|
||||
{"sleep", nseU_placeholder}, /* imported from nmap.socket */
|
||||
{"mutex", nseU_placeholder}, /* placeholder */
|
||||
{"condvar", nseU_placeholder}, /* placeholder */
|
||||
{NULL, NULL}
|
||||
|
|
@ -965,9 +964,6 @@ int luaopen_nmap (lua_State *L)
|
|||
/* nmap.socket.new -> nmap.new_socket. */
|
||||
lua_getfield(L, -1, "new");
|
||||
lua_setfield(L, nmap_idx, "new_socket");
|
||||
/* nmap.socket.sleep -> nmap.sleep. */
|
||||
lua_getfield(L, -1, "sleep");
|
||||
lua_setfield(L, nmap_idx, "sleep");
|
||||
/* Store nmap.socket; used by nse_main.lua. */
|
||||
lua_setfield(L, nmap_idx, "socket");
|
||||
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ _ENV = require "strict" {};
|
|||
-- @class function
|
||||
-- @param t Time to sleep, in seconds.
|
||||
-- @usage stdnse.sleep(1.5)
|
||||
_ENV.sleep = nmap.sleep;
|
||||
_ENV.sleep = nmap.sleep.socket;
|
||||
|
||||
---
|
||||
-- Prints a formatted debug message if the current debugging level is greater
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue