1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-10 09:49:05 +00:00

o The NSE Comm library now defaults to trying to read as many bytes as are

available rather than lines if neither the "bytes" nor "lines" options are
  given.  Thanks to Brandon for reporting a problem which he noticed in the
  dns-test-open-recursion script. [Kris]
This commit is contained in:
kris
2008-07-28 01:47:26 +00:00
parent 7bb32b409f
commit a285f82299
8 changed files with 25 additions and 34 deletions

View File

@@ -47,7 +47,7 @@ action = function(host, port)
-- Ask proxy to open www.google.com
local req = "GET http://www.google.com HTTP/1.0\r\nHost: www.google.com\r\n\r\n"
local status, result = comm.exchange(host, port, req, {proto=port.protocol, timeout=10000})
local status, result = comm.exchange(host, port, req, {lines=1,proto=port.protocol, timeout=10000})
if not status then
return