mirror of
https://github.com/nmap/nmap.git
synced 2025-12-09 22:21:29 +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:
@@ -84,7 +84,7 @@ action = function(host, port)
|
||||
local status, tcp, udp
|
||||
|
||||
socket:set_timeout(5000)
|
||||
try(socket:connect(host.ip, port.number, "udp"))
|
||||
try(socket:connect(host, port))
|
||||
|
||||
status, tcp = snmp.snmpWalk( socket, tcp_oid )
|
||||
status, udp = snmp.snmpWalk( socket, udp_oid )
|
||||
|
||||
Reference in New Issue
Block a user