1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-16 20:59:02 +00:00

Reads version string from options. Fixes #1064.

This commit is contained in:
paulino
2017-12-10 06:27:44 +00:00
parent b8df27778f
commit cdcf73c88b

View File

@@ -429,7 +429,7 @@ Helper = {
--- Creates a new Helper instance --- Creates a new Helper instance
-- --
-- @param host string containing the host name or ip -- @param host string containing the host name or ip
-- @param port number containing the port to connect to -- @param port table containing the port details to connect to
-- @param community string containing SNMP community -- @param community string containing SNMP community
-- @param options A table with appropriate options: -- @param options A table with appropriate options:
-- * timeout - the timeout in milliseconds (Default: 5000) -- * timeout - the timeout in milliseconds (Default: 5000)
@@ -488,7 +488,7 @@ Helper = {
request = function (self, message) request = function (self, message)
local payload = encode( buildPacket( local payload = encode( buildPacket(
message, message,
self.version, self.options.version,
self.community self.community
) ) ) )