mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-11-22 04:33:16 +03:00
Updated MeshCentral Router and Assistant
This commit is contained in:
parent
21ad4da51c
commit
d5f1a6f445
Binary file not shown.
Binary file not shown.
@ -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;
|
||||
}
|
||||
|
@ -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: {
|
||||
|
Loading…
Reference in New Issue
Block a user