diff --git a/agents/meshcore.js b/agents/meshcore.js index b5d3a1a7..ed1d612d 100644 --- a/agents/meshcore.js +++ b/agents/meshcore.js @@ -4484,10 +4484,10 @@ function agentUpdate_Start(updateurl, updateoptions) { if (updateoptions != null && updateoptions.hash != null) { if (updateoptions.hash.toLowerCase() == h.toString('hex').toLowerCase()) { if (sessionid != null) { sendConsoleText('Download complete. HASH verified.', sessionid); } - } - else { + } else { agentUpdate_Start._retryCount++; sendConsoleText('Self Update FAILED because the downloaded agent FAILED hash check (' + agentUpdate_Start._retryCount + '), URL: ' + updateurl, sessionid); + sendConsoleText(updateoptions.hash + " != " + h.toString('hex')); sendAgentMessage('Self Update FAILED because the downloaded agent FAILED hash check (' + agentUpdate_Start._retryCount + '), URL: ' + updateurl, 3); agentUpdate_Start._selfupdate = null; diff --git a/package.json b/package.json index aba1de3c..29f98d41 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "meshcentral", - "version": "0.9.5", + "version": "0.9.6", "keywords": [ "Remote Device Management", "Remote Device Monitoring",