Added .msh to MeshCentral Assistant.

This commit is contained in:
Ylian Saint-Hilaire 2021-05-17 23:43:47 -07:00
parent e8a3ceb558
commit dfff6dcece
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@ -1501,7 +1501,7 @@ module.exports.CreateMeshAgent = function (parent, db, ws, req, args, domain) {
const responseCmd = { action: 'meshToolInfo', name: command.name, tag: command.tag, sessionid: command.sessionid, 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'); }
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;
}