diff --git a/agents/MeshCmd-signed.exe b/agents/MeshCmd-signed.exe index 70f0fd67..5065efe4 100644 Binary files a/agents/MeshCmd-signed.exe and b/agents/MeshCmd-signed.exe differ diff --git a/agents/MeshCmd64-signed.exe b/agents/MeshCmd64-signed.exe index cd17ecec..d14a3308 100644 Binary files a/agents/MeshCmd64-signed.exe and b/agents/MeshCmd64-signed.exe differ diff --git a/agents/MeshService-signed.exe b/agents/MeshService-signed.exe index a07ea37c..6f9d9af0 100644 Binary files a/agents/MeshService-signed.exe and b/agents/MeshService-signed.exe differ diff --git a/agents/MeshService.exe b/agents/MeshService.exe index dde24327..37f86827 100644 Binary files a/agents/MeshService.exe and b/agents/MeshService.exe differ diff --git a/agents/MeshService64-signed.exe b/agents/MeshService64-signed.exe index b9af7473..8329690c 100644 Binary files a/agents/MeshService64-signed.exe and b/agents/MeshService64-signed.exe differ diff --git a/agents/MeshService64.exe b/agents/MeshService64.exe index fee07ecf..c9b4bc19 100644 Binary files a/agents/MeshService64.exe and b/agents/MeshService64.exe differ diff --git a/agents/hashagents.json b/agents/hashagents.json index 8504a644..d112d4fa 100644 --- a/agents/hashagents.json +++ b/agents/hashagents.json @@ -1,15 +1,15 @@ { "3": { "filename": "MeshService-signed.exe", - "hash": "93917AC2C4A3A6A034B39675FA658B0A67F480DDE7BA5607A75F6A711D7ADC553208D98678340796D48813D1F4B56A94", - "size": 3656000, - "mtime": "2022-02-13T20:24:29Z" + "hash": "F34F56D2D284E3865FA3F467799A1CBF92F4A510D73914104ED5CA10B93A46CE5887018265529B80D13D53685ECB2774", + "size": 3676480, + "mtime": "2022-02-22T06:55:40Z" }, "4": { "filename": "MeshService64-signed.exe", - "hash": "B7AC4F1A3A66D0C377CE8E19FC86A666E9BA85AE233C6278CDCA05D156B5F2E018EC5C9FAE2A5968F2E64D0D0417B4CD", - "size": 3272000, - "mtime": "2022-02-13T20:24:32Z" + "hash": "E00D0B58B943DA5614E765E8C0F370C77BCDFBB7DDEDC251F0A6E35ED9A178598D07EC560BFDDA1AD2DCA57429A284E4", + "size": 3291456, + "mtime": "2022-02-22T06:55:43Z" }, "5": { "filename": "meshagent_x86", @@ -132,4 +132,3 @@ "mtime": "2022-01-08T00:23:52Z" } } -0 diff --git a/meshagent.js b/meshagent.js index 4fa9e464..0b6543e7 100644 --- a/meshagent.js +++ b/meshagent.js @@ -269,7 +269,7 @@ module.exports.CreateMeshAgent = function (parent, db, ws, req, args, domain) { else if (cmdid == 12) { // MeshCommand_AgentHash if ((msg.length == 52) && (obj.agentExeInfo != null) && (obj.agentExeInfo.update == true)) { const agenthash = msg.substring(4); - const agentUpdateMethod = compareAgentBinaryHash(obj.agentExeInfo, agenthash) + const agentUpdateMethod = compareAgentBinaryHash(obj.agentExeInfo, agenthash); if (agentUpdateMethod === 2) { // Use meshcore agent update system // Send the recovery core to the agent, if the agent is capable of running one if (((obj.agentInfo.capabilities & 16) != 0) && (parent.parent.meshAgentsArchitectureNumbers[obj.agentInfo.agentId].core != null)) { diff --git a/views/default.handlebars b/views/default.handlebars index e5538e7e..6c8a45cc 100644 --- a/views/default.handlebars +++ b/views/default.handlebars @@ -1333,7 +1333,7 @@ var webState = '{{{webstate}}}'; if (webState != '') { webState = JSON.parse(decodeURIComponent(webState)); } if ((webState == null) || (typeof webState != 'object')) { webState = {}; } - for (var i in webState) { if (i != 'desktopsettings') { localStorage.setItem(i, webState[i]); } } + for (var i in webState) { if (i != 'desktopsettings') { try { localStorage.setItem(i, webState[i]); } catch (ex) {} } } if (!webState.loctag) { try { delete localStorage.removeItem('loctag'); } catch (ex) { } } var args, urlargs; diff --git a/webserver.js b/webserver.js index 81c3b01b..40f5a0f3 100644 --- a/webserver.js +++ b/webserver.js @@ -4952,8 +4952,8 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF if (domain.agentcustomization.servicename != null) { meshsettings += 'meshServiceName=' + domain.agentcustomization.servicename + '\r\n'; } if (domain.agentcustomization.filename != null) { meshsettings += 'fileName=' + domain.agentcustomization.filename + '\r\n'; } if (domain.agentcustomization.image != null) { meshsettings += 'image=' + domain.agentcustomization.image + '\r\n'; } - if (domain.agentcustomization.foregroundcolor != null) { meshsettings += checkAgentColorString('fgcolor=', domain.agentcustomization.foregroundcolor); } - if (domain.agentcustomization.backgroundcolor != null) { meshsettings += checkAgentColorString('bkcolor=', domain.agentcustomization.backgroundcolor); } + if (domain.agentcustomization.foregroundcolor != null) { meshsettings += checkAgentColorString('foreground=', domain.agentcustomization.foregroundcolor); } + if (domain.agentcustomization.backgroundcolor != null) { meshsettings += checkAgentColorString('background=', domain.agentcustomization.backgroundcolor); } } if (domain.agentTranslations != null) { meshsettings += 'translation=' + domain.agentTranslations + '\r\n'; } // Translation strings, not for MeshCentral Assistant } @@ -5326,8 +5326,8 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF if (domain.agentcustomization.servicename != null) { meshsettings += 'meshServiceName=' + domain.agentcustomization.servicename + '\r\n'; } if (domain.agentcustomization.filename != null) { meshsettings += 'fileName=' + domain.agentcustomization.filename + '\r\n'; } if (domain.agentcustomization.image != null) { meshsettings += 'image=' + domain.agentcustomization.image + '\r\n'; } - if (domain.agentcustomization.foregroundcolor != null) { meshsettings += checkAgentColorString('fgcolor=', domain.agentcustomization.foregroundcolor); } - if (domain.agentcustomization.backgroundcolor != null) { meshsettings += checkAgentColorString('bkcolor=', domain.agentcustomization.backgroundcolor); } + if (domain.agentcustomization.foregroundcolor != null) { meshsettings += checkAgentColorString('foreground=', domain.agentcustomization.foregroundcolor); } + if (domain.agentcustomization.backgroundcolor != null) { meshsettings += checkAgentColorString('background=', domain.agentcustomization.backgroundcolor); } } if (domain.agentTranslations != null) { meshsettings += 'translation=' + domain.agentTranslations + '\r\n'; } @@ -5429,8 +5429,8 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF if (domain.agentcustomization.servicename != null) { meshsettings += 'meshServiceName=' + domain.agentcustomization.servicename + '\r\n'; } if (domain.agentcustomization.filename != null) { meshsettings += 'fileName=' + domain.agentcustomization.filename + '\r\n'; } if (domain.agentcustomization.image != null) { meshsettings += 'image=' + domain.agentcustomization.image + '\r\n'; } - if (domain.agentcustomization.foregroundcolor != null) { meshsettings += checkAgentColorString('fgcolor=', domain.agentcustomization.foregroundcolor); } - if (domain.agentcustomization.backgroundcolor != null) { meshsettings += checkAgentColorString('bkcolor=', domain.agentcustomization.backgroundcolor); } + if (domain.agentcustomization.foregroundcolor != null) { meshsettings += checkAgentColorString('foreground=', domain.agentcustomization.foregroundcolor); } + if (domain.agentcustomization.backgroundcolor != null) { meshsettings += checkAgentColorString('background=', domain.agentcustomization.backgroundcolor); } } if (domain.agentTranslations != null) { meshsettings += 'translation=' + domain.agentTranslations + '\r\n'; } return meshsettings;