Added ability to specify (optional parameter) SNMP version

Improved discovery
This commit is contained in:
Luca Deri 2017-08-08 15:13:20 +02:00
parent 39a7dcc20e
commit 66841e28a4
3 changed files with 30 additions and 8 deletions

View file

@ -15,7 +15,9 @@ function string.contains(String,Start)
if type(String) ~= 'string' or type(Start) ~= 'string' then
return false
end
return(string.find(String,Start,1) ~= nil)
local i,j = string.find(String,Start,1)
return(i ~= nil)
end
-- ##############################################