1
0
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:
nnposter
2024-12-01 14:36:47 +00:00
parent 68158b6d52
commit c98b77bd65
2 changed files with 2 additions and 1 deletions

View File

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

View File

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