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

Added support to HTTP web relay on the main web server port with used with a specified DNS name, #4210

This commit is contained in:
Ylian Saint-Hilaire 2022-07-03 00:44:58 -07:00
parent 4662a0a0b9
commit 5ba9d7e503
6 changed files with 123 additions and 29 deletions

View file

@ -1647,7 +1647,7 @@ function CreateMeshCentralServer(config, args) {
if (obj.redirserver != null) { obj.redirserver.hookMainWebServer(obj.certificates); }
// Start the HTTP relay web server if needed
if ((obj.args.relayport != null) && (obj.args.relayport != 0)) {
if ((typeof obj.args.relaydns != 'string') && (typeof obj.args.relayport == 'number') && (obj.args.relayport != 0)) {
obj.webrelayserver = require('./webrelayserver.js').CreateWebRelayServer(obj, obj.db, obj.args, obj.certificates, function () { });
}