mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-24 22:25:52 -05:00
Updated MeshCentral Router and Assistant
This commit is contained in:
parent
1b590dba5e
commit
369f51c67d
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 };
|
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.cookie === true) { responseCmd.url += ('&auth=' + parent.parent.encodeCookie({ download: info.dlname }, parent.parent.loginCookieEncryptionKey)); }
|
||||||
if (command.pipe === true) { responseCmd.pipe = true; }
|
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) { }
|
try { ws.send(JSON.stringify(responseCmd)); } catch (ex) { }
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -5002,7 +5002,9 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
|
|||||||
case 'meshToolInfo': {
|
case 'meshToolInfo': {
|
||||||
if (typeof command.name != 'string') break;
|
if (typeof command.name != 'string') break;
|
||||||
var info = parent.parent.meshToolsBinaries[command.name];
|
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;
|
break;
|
||||||
}
|
}
|
||||||
default: {
|
default: {
|
||||||
|
Loading…
Reference in New Issue
Block a user