nat-upnp
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -90,6 +90,9 @@ var nat = require('../nat-upnp'); | ||
gateway.run('GetGenericPortMappingEntry', [ | ||
[ 'NewPortMappingIndex', ++i ] | ||
[ 'NewPortMappingIndex', i++ ] | ||
], function(err, data) { | ||
if (err) { | ||
end = true; | ||
// If we got an error on index 0, ignore it in case this router starts indicies on 1 | ||
if (i !== 1) { | ||
end = true; | ||
} | ||
return callback(null); | ||
@@ -96,0 +99,0 @@ } |
{ | ||
"name": "nat-upnp", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"main": "lib/nat-upnp", | ||
@@ -5,0 +5,0 @@ "author": "Fedor Indutny <fedor@indutny.com>", |
20640
522