standalone upnp

This commit is contained in:
AJ ONeal 2015-12-30 21:42:23 +00:00
parent 6382701c91
commit 967a4a99fc
1 changed files with 17 additions and 0 deletions

17
tests/upnp.js Normal file
View File

@ -0,0 +1,17 @@
'use strict';
var upnp = require('../lib/upnp');
var opts = {
debug: true
};
var ips = [];
var portInfo = {
internal: 65080
, external: 65080
};
upnp(opts, ips, portInfo).then(function (result) {
console.log('results', result);
}, function (err) {
console.error('error', err.stack);
});