1
0
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:
dmiller
2014-09-20 05:40:46 +00:00
parent 5db940fc70
commit bf457ee12c
5 changed files with 13 additions and 23 deletions

View File

@@ -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