1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

Started work on HTTP web relay, #4172

This commit is contained in:
Ylian Saint-Hilaire 2022-06-24 14:34:27 -07:00
parent a05215e9bf
commit 4dd5c18db4
4 changed files with 103 additions and 1 deletions

View file

@ -142,7 +142,7 @@ module.exports.CreateRedirServer = function (parent, db, args, func) {
obj.parent.updateServerState('redirect-port', port);
func(obj.port);
}).on('error', function (err) {
if ((err.code == 'EACCES') && (port < 65535)) { StartRedirServer(port + 1); } else { console.log(err); func(obj.port); }
if ((err.code == 'EACCES') && (port < 65535)) { StartRedirServer(port + 1, addr); } else { console.log(err); func(obj.port); }
});
}