mirror of
https://github.com/nmap/nmap.git
synced 2025-12-24 00:19:01 +00:00
increase the timeout from 5s to 10s because many servers seem to respond slowly
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user