mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-02-12 11:01:52 +00:00
Fix for #3748
This commit is contained in:
parent
b56fd05e7a
commit
9f7d2d63f8
1 changed files with 1 additions and 1 deletions
|
@ -2095,7 +2095,7 @@ module.exports.CreateMeshAgent = function (parent, db, ws, req, args, domain) {
|
||||||
if ((agentExeInfo.hash == agentHash) || (agentHash == '\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0')) return 0;
|
if ((agentExeInfo.hash == agentHash) || (agentHash == '\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0')) return 0;
|
||||||
// If this is a macOS x86 or ARM agent type and it matched the universal binary, no update required.
|
// If this is a macOS x86 or ARM agent type and it matched the universal binary, no update required.
|
||||||
if ((agentExeInfo.id == 16) || (agentExeInfo.id == 29)) {
|
if ((agentExeInfo.id == 16) || (agentExeInfo.id == 29)) {
|
||||||
if (domain.meshAgentBinaries[10005]) {
|
if (domain.meshAgentBinaries && domain.meshAgentBinaries[10005]) {
|
||||||
if (domain.meshAgentBinaries[10005].hash == agentHash) return 0;
|
if (domain.meshAgentBinaries[10005].hash == agentHash) return 0;
|
||||||
} else {
|
} else {
|
||||||
if (parent.parent.meshAgentBinaries[10005].hash == agentHash) return 0;
|
if (parent.parent.meshAgentBinaries[10005].hash == agentHash) return 0;
|
||||||
|
|
Loading…
Reference in a new issue