Fixed autobackup settings.

This commit is contained in:
Ylian Saint-Hilaire 2019-05-27 11:58:31 -07:00
parent a6c1d14467
commit 3ab8061d59
3 changed files with 3 additions and 3 deletions

View File

@ -131,8 +131,8 @@ module.exports.escapeHtmlBreaks = function (string) { return String(string).repl
// Allow for exception keys, child of exceptions will not get lower-cased.
module.exports.objKeysToLower = function (obj, exceptions) {
for (var i in obj) {
if (i.toLowerCase() !== i) { obj[i.toLowerCase()] = obj[i]; delete obj[i]; } // LowerCase all key names
if ((typeof obj[i] == 'object') && ((exceptions == null) || (exceptions.indexOf(i.toLowerCase()) == -1))) { module.exports.objKeysToLower(obj[i], exceptions); } // LowerCase all key names in the child object
if (i.toLowerCase() !== i) { obj[i.toLowerCase()] = obj[i]; delete obj[i]; } // LowerCase all key names
}
return obj;
};

View File

@ -1724,7 +1724,7 @@ function mainStart() {
var config = getConfig(false);
if (config == null) { process.exit(); }
// Lowercase the auth value is present
// Lowercase the auth value if present
for (var i in config.domains) { if (typeof config.domains[i].auth == 'string') { config.domains[i].auth = config.domains[i].auth.toLowerCase(); } }
// Check is Windows SSPI and YubiKey OTP will be used

View File

@ -1,6 +1,6 @@
{
"name": "meshcentral",
"version": "0.3.5-g",
"version": "0.3.5-h",
"keywords": [
"Remote Management",
"Intel AMT",