map indefinite for nodes...

canary
Marcus 2021-04-01 01:11:42 -04:00
parent 33bd6a7244
commit 44f9fde5e2
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ class Node extends EventEmitter {
for(let port = config.ports.relay; port <= config.ports.relayEnd; port ++) {
if(takenPorts.indexOf(port) === -1) {
console.log('registering to port ' + port);
await upnp.map(port, 10, this.name);
await upnp.mapIndefinite(port, 10, this.name);
break;
} else {
console.log('port ' + port + ' is taken...');