Updated MeshCentral Router and Assistant
Ylian Saint-Hilaire committed
Nov 3, 2020 at 21:32 UTC
369f51c67d99b4fd6745cddb19d0cb2029dcabee
4 files changed
+4
-1
agents/MeshCentralAssistant.exe
Binary files a/agents/MeshCentralAssistant.exe and b/agents/MeshCentralAssistant.exe differ
agents/MeshCentralRouter.exe
Binary files a/agents/MeshCentralRouter.exe and b/agents/MeshCentralRouter.exe differ
meshagent.js
+1
@@ -1404,6 +1404,7 @@ module.exports.CreateMeshAgent = function (parent, db, ws, req, args, domain) {
1404
const responseCmd = { action: 'meshToolInfo', name: command.name, hash: info.hash, size: info.size, url: info.url };
1405
if (command.cookie === true) { responseCmd.url += ('&auth=' + parent.parent.encodeCookie({ download: info.dlname }, parent.parent.loginCookieEncryptionKey)); }
1406
if (command.pipe === true) { responseCmd.pipe = true; }
1407
+ if (parent.webCertificateHashs[domain.id] != null) { responseCmd.serverhash = Buffer.from(parent.webCertificateHashs[domain.id], 'binary').toString('hex'); }
1408
try { ws.send(JSON.stringify(responseCmd)); } catch (ex) { }
1409
break;
1410
}
meshuser.js
+3
-1
@@ -5002,7 +5002,9 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
5002
case 'meshToolInfo': {
5003
if (typeof command.name != 'string') break;
5004
var info = parent.parent.meshToolsBinaries[command.name];
5005
- try { ws.send(JSON.stringify({ action: 'meshToolInfo', name: command.name, hash: info.hash, size: info.size, url: info.url })); } catch (ex) { }
5005
+ var responseCmd = { action: 'meshToolInfo', name: command.name, hash: info.hash, size: info.size, url: info.url };
5006
+ if (parent.webCertificateHashs[domain.id] != null) { responseCmd.serverhash = Buffer.from(parent.webCertificateHashs[domain.id], 'binary').toString('hex'); }
5007
+ try { ws.send(JSON.stringify(responseCmd)); } catch (ex) { }
5008
break;
5009
}
5010
default: {