mirror of
https://github.com/nmap/nmap.git
synced 2025-12-09 14:11:29 +00:00
Normalize some timeouts in scripts
Added use of stdnse.parse_timespec for timeout args. Used comm.lua
default timeouts in a couple cases. Corrected 2 cases of incorrect
documentation ("Default 60" when the default was 30 seconds).
This commit is contained in:
@@ -17,8 +17,7 @@ end
|
||||
|
||||
action = function(host, port)
|
||||
local status, result = comm.exchange(host, port,
|
||||
"t3 12.1.2\nAS:2048\nHL:19\n\n",
|
||||
{proto=port.protocol, timeout=5000})
|
||||
"t3 12.1.2\nAS:2048\nHL:19\n\n")
|
||||
|
||||
if (not status) then
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user