diff --git a/common.js b/common.js index bac385b6..5a22f73a 100644 --- a/common.js +++ b/common.js @@ -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; }; diff --git a/meshcentral.js b/meshcentral.js index a579c17d..11d77e43 100644 --- a/meshcentral.js +++ b/meshcentral.js @@ -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 diff --git a/package.json b/package.json index 47e1618b..df46a664 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "meshcentral", - "version": "0.3.5-g", + "version": "0.3.5-h", "keywords": [ "Remote Management", "Intel AMT",