mirror of
https://github.com/nmap/nmap.git
synced 2026-06-11 18:46:15 +00:00
increase the timeout from 5s to 10s because many servers seem to respond slowly
This commit is contained in:
parent
93c0ae4f44
commit
ea33a885a3
1 changed files with 2 additions and 2 deletions
|
|
@ -67,7 +67,7 @@ action = function(host, port)
|
|||
local data = bin.pack("H", "FFFD26FFFB26")
|
||||
local result
|
||||
|
||||
socket:set_timeout(5000)
|
||||
socket:set_timeout(10000)
|
||||
status, result = socket:send(data)
|
||||
if ( not(status) ) then
|
||||
return ("\n ERROR: Failed to send packet: %s"):format(result)
|
||||
|
|
@ -90,4 +90,4 @@ action = function(host, port)
|
|||
end
|
||||
end
|
||||
return "\n Telnet server does not support encryption"
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue