1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-09 16:09:03 +00:00

Pass host and port tables instead of host.ip and port.number in http.lua

and comm.lua.
This commit is contained in:
david
2010-08-16 17:41:57 +00:00
parent 0e3c861ea0
commit abbe5324bd
2 changed files with 5 additions and 21 deletions

View File

@@ -978,10 +978,6 @@ request = function(host, port, data, options)
options = options or {}
if type(host) == 'table' then
host = host.ip
end
if type(port) == 'table' then
if port.protocol and port.protocol ~= 'tcp' then
stdnse.print_debug(1, "http.request() supports the TCP protocol only, your request to %s cannot be completed.", host)
@@ -1253,7 +1249,7 @@ pipeline = function(host, port, allReqs)
-- Connect to host and send all the requests at once!
if count >= limit or not socket:get_info() then
socket:connect(host.ip, port.number, bopt)
socket:connect(host, port, bopt)
partial = ""
count = 0
end