mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
Preserve global pipeline connection options. Closes #2941
This commit is contained in:
@@ -247,6 +247,7 @@ end
|
||||
-- @param data The first data payload of the connection. Optional if
|
||||
-- <code>opts.recv_before</code> is true.
|
||||
-- @param opts Options, such as timeout
|
||||
-- Note that opts.proto will get set to correctOpt (see below)
|
||||
-- @return sd The socket descriptor, or nil on error
|
||||
-- @return response The response received for the payload, or an error message
|
||||
-- @return correctOpt Correct option for connection guess
|
||||
|
||||
@@ -2002,7 +2002,7 @@ function pipeline_go(host, port, all_requests)
|
||||
local req = all_requests[1]
|
||||
req.options.header = force_header(req.options.header, "Connection", "keep-alive")
|
||||
local reqstr = build_request(host, port, req.method, req.path, req.options)
|
||||
local socket, partial, bopt = comm.tryssl(host, port, reqstr, pipeline_comm_opts)
|
||||
local socket, partial, bopt = comm.tryssl(host, port, reqstr, tableaux.tcopy(pipeline_comm_opts))
|
||||
if not socket then
|
||||
return nil
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user