diff --git a/agents/MeshCentralAssistant.exe b/agents/MeshCentralAssistant.exe index de236ad6..1ace907f 100644 Binary files a/agents/MeshCentralAssistant.exe and b/agents/MeshCentralAssistant.exe differ diff --git a/agents/MeshCentralRouter.exe b/agents/MeshCentralRouter.exe index 6d2b50e5..d2005a31 100644 Binary files a/agents/MeshCentralRouter.exe and b/agents/MeshCentralRouter.exe differ diff --git a/meshagent.js b/meshagent.js index f44906db..de4721ab 100644 --- a/meshagent.js +++ b/meshagent.js @@ -1404,6 +1404,7 @@ module.exports.CreateMeshAgent = function (parent, db, ws, req, args, domain) { const responseCmd = { action: 'meshToolInfo', name: command.name, hash: info.hash, size: info.size, url: info.url }; if (command.cookie === true) { responseCmd.url += ('&auth=' + parent.parent.encodeCookie({ download: info.dlname }, parent.parent.loginCookieEncryptionKey)); } if (command.pipe === true) { responseCmd.pipe = true; } + if (parent.webCertificateHashs[domain.id] != null) { responseCmd.serverhash = Buffer.from(parent.webCertificateHashs[domain.id], 'binary').toString('hex'); } try { ws.send(JSON.stringify(responseCmd)); } catch (ex) { } break; } diff --git a/meshuser.js b/meshuser.js index 0887d0d2..2a3f29cc 100644 --- a/meshuser.js +++ b/meshuser.js @@ -5002,7 +5002,9 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use case 'meshToolInfo': { if (typeof command.name != 'string') break; var info = parent.parent.meshToolsBinaries[command.name]; - try { ws.send(JSON.stringify({ action: 'meshToolInfo', name: command.name, hash: info.hash, size: info.size, url: info.url })); } catch (ex) { } + var responseCmd = { action: 'meshToolInfo', name: command.name, hash: info.hash, size: info.size, url: info.url }; + if (parent.webCertificateHashs[domain.id] != null) { responseCmd.serverhash = Buffer.from(parent.webCertificateHashs[domain.id], 'binary').toString('hex'); } + try { ws.send(JSON.stringify(responseCmd)); } catch (ex) { } break; } default: {