mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-11-08 05:04:53 -05:00
Updated agent-update ARCHID detection on macOS to workaround bug in specific older versions
This commit is contained in:
@@ -18,7 +18,14 @@ if (require('MeshAgent').ARCHID == null)
|
||||
id = require('_GenericMarshal').PointerSize == 4 ? 31 : 30;
|
||||
break;
|
||||
case 'darwin':
|
||||
id = require('os').arch() == 'x64' ? 16 : 29;
|
||||
try
|
||||
{
|
||||
id = require('os').arch() == 'x64' ? 16 : 29;
|
||||
}
|
||||
catch(xx)
|
||||
{
|
||||
id = 16;
|
||||
}
|
||||
break;
|
||||
}
|
||||
if (id != null) { Object.defineProperty(require('MeshAgent'), 'ARCHID', { value: id }); }
|
||||
|
||||
Reference in New Issue
Block a user