Fixed 2fahold.aspx port number.

Ylian Saint-Hilaire committed Mar 24, 2022 at 17:08 UTC 629aba7fc847c5bf970f217bc7ea4339f8c2c516
2 files changed +2 -4
meshcentral.js
+2 -2
@@ -3486,8 +3486,8 @@ function mainStart() {
3486 if (config.domains[i].sendgrid != null) { sendgrid = true; }
3487 if (config.domains[i].yubikey != null) { yubikey = true; }
3488 if (config.domains[i].auth == 'ldap') { ldap = true; }
3489 - if (config.domains[i].mstsc === true) { mstsc = true; }
3490 - if (config.domains[i].ssh === true) { if (nodeVersion < 11) { config.domains[i].ssh = false; } ssh = true; }
3489 + if (config.domains[i].mstsc == true) { mstsc = true; }
3490 + if (config.domains[i].ssh == true) { if (nodeVersion < 11) { config.domains[i].ssh = false; } else { ssh = true; } }
3491 if ((typeof config.domains[i].authstrategies == 'object')) {
3492 if (passport == null) { passport = ['passport']; }
3493 if ((typeof config.domains[i].authstrategies.twitter == 'object') && (typeof config.domains[i].authstrategies.twitter.clientid == 'string') && (typeof config.domains[i].authstrategies.twitter.clientsecret == 'string') && (passport.indexOf('passport-twitter') == -1)) { passport.push('passport-twitter'); }
webserver.js
-2
@@ -1105,8 +1105,6 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
1105
1106 // Get the HTTPS port
1107 var httpsPort = ((obj.args.aliasport == null) ? obj.args.port : obj.args.aliasport); // Use HTTPS alias port if specified
1108 - if (obj.args.agentport != null) { httpsPort = obj.args.agentport; } // If an agent only port is enabled, use that.
1109 - if (obj.args.agentaliasport != null) { httpsPort = obj.args.agentaliasport; } // If an agent alias port is specified, use that.
1108
1109 // Get the agent connection server name
1110 var serverName = obj.getWebServerName(domain);