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:
parent
4662a0a0b9
commit
5ba9d7e503
6 changed files with 123 additions and 29 deletions
|
@ -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 () { });
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue