Comparing version 3.15.1 to 3.15.2
@@ -18,2 +18,3 @@ { | ||
"-c", "public", | ||
"-s", "5678", | ||
"127.0.0.1", | ||
@@ -20,0 +21,0 @@ "1.3.6.1.2.1.31.1.1.1.6.1" |
@@ -12,2 +12,3 @@ var snmp = require ("../"); | ||
var maxRepetitions; | ||
var sourcePort; | ||
var oids; | ||
@@ -48,2 +49,3 @@ var varbinds; | ||
maxRepetitions = options.r; | ||
sourcePort = options.s; | ||
@@ -82,2 +84,4 @@ if (options._.length < 2) { | ||
snmpOptions.sourcePort = sourcePort; | ||
if ( snmpOptions.version == snmp.Version3 ) { | ||
@@ -84,0 +88,0 @@ session = snmp.createV3Session (target, user, snmpOptions); |
@@ -21,2 +21,7 @@ | ||
} | ||
session.close(); | ||
}); | ||
session.on("error", function (error) { | ||
console.error (error.toString ()); | ||
}); |
{ | ||
"name": "net-snmp", | ||
"version": "3.15.1", | ||
"version": "3.15.2", | ||
"description": "JavaScript implementation of the Simple Network Management Protocol (SNMP)", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
1675547
8117
3452