mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 21:21:31 +00:00
Change calls in these forms:
socket:connect(host.ip, port.number) socket:connect(host.ip, port.number, port.protocol) to this: socket:connect(host, port) connect can take host and port tables now, and the default protocol is taken from the port table if possible.
This commit is contained in:
@@ -611,7 +611,7 @@ function detectVersion(host, port)
|
||||
local status, response
|
||||
local socket = nmap.new_socket()
|
||||
|
||||
socket:connect(host.ip, port.number, "tcp")
|
||||
socket:connect(host, port)
|
||||
status, response = v3.sendStartup(socket, "versionprobe", "versionprobe")
|
||||
socket:close()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user