mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
UI customization improvements.
This commit is contained in:
parent
6bdc57b79a
commit
98b39000eb
11 changed files with 72 additions and 39 deletions
|
@ -128,10 +128,10 @@ module.exports.CreateMeshMail = function (parent) {
|
|||
var httpsport = (typeof obj.parent.args.aliasport == 'number') ? obj.parent.args.aliasport : obj.parent.args.port;
|
||||
if (domain.dns == null) {
|
||||
// Default domain or subdomain of the default.
|
||||
options.serverurl = 'http' + ((obj.parent.args.notls == null) ? 's' : '') + '://' + obj.parent.certificates.CommonName + ':' + httpsport + domain.url;
|
||||
options.serverurl = 'https://' + obj.parent.certificates.CommonName + ':' + httpsport + domain.url;
|
||||
} else {
|
||||
// Domain with a DNS name.
|
||||
options.serverurl = 'http' + ((obj.parent.args.notls == null) ? 's' : '') + '://' + domain.dns + ':' + httpsport + domain.url;
|
||||
options.serverurl = 'https://' + domain.dns + ':' + httpsport + domain.url;
|
||||
}
|
||||
if (options.serverurl.endsWith('/')) { options.serverurl = options.serverurl.substring(0, options.serverurl.length - 1); } // Remove the ending / if present
|
||||
for (var i in options) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue