mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-26 23:25:53 -05:00
Web relay with DNS now uses the main HTTPS alias port when set, #4210.
This commit is contained in:
parent
07aa35898a
commit
568097597c
@ -2864,7 +2864,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
|
|||||||
webstate: encodeURIComponent(webstate).replace(/'/g, '%27'),
|
webstate: encodeURIComponent(webstate).replace(/'/g, '%27'),
|
||||||
amtscanoptions: amtscanoptions,
|
amtscanoptions: amtscanoptions,
|
||||||
pluginHandler: (parent.pluginHandler == null) ? 'null' : parent.pluginHandler.prepExports(),
|
pluginHandler: (parent.pluginHandler == null) ? 'null' : parent.pluginHandler.prepExports(),
|
||||||
webRelayPort: ((typeof args.relaydns == 'string') ? args.port : ((parent.webrelayserver != null) ? ((typeof args.relayaliasport == 'number') ? args.relayaliasport : parent.webrelayserver.port) : 0)),
|
webRelayPort: ((typeof args.relaydns == 'string') ? ((typeof args.aliasport == 'number') ? args.aliasport : args.port) : ((parent.webrelayserver != null) ? ((typeof args.relayaliasport == 'number') ? args.relayaliasport : parent.webrelayserver.port) : 0)),
|
||||||
webRelayDns: ((typeof args.relaydns == 'string') ? args.relaydns : '')
|
webRelayDns: ((typeof args.relaydns == 'string') ? args.relaydns : '')
|
||||||
}, dbGetFunc.req, domain), user);
|
}, dbGetFunc.req, domain), user);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user