standalone upnp
This commit is contained in:
parent
6382701c91
commit
967a4a99fc
|
@ -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);
|
||||
});
|
Loading…
Reference in New Issue