mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 13:11:28 +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:
@@ -654,7 +654,7 @@ TDSStream = {
|
||||
-- the end of the input buffer. So the only time the timeout is
|
||||
-- triggered is when waiting for a response to a query.
|
||||
self.socket:set_timeout( MSSQL_TIMEOUT * 1000 )
|
||||
status, result = self.socket:connect(host.ip, port.number, port.protocol)
|
||||
status, result = self.socket:connect(host, port)
|
||||
status, _, lport, _, _ = self.socket:get_info()
|
||||
if ( status ) then
|
||||
math.randomseed(os.time() * lport )
|
||||
|
||||
Reference in New Issue
Block a user