mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-11-22 12:52:50 +03:00
Updated agent-update ARCHID detection on macOS to workaround bug in specific older versions
This commit is contained in:
parent
10f1b77006
commit
0a44d8c873
@ -53,8 +53,15 @@ if (require('MeshAgent').ARCHID == null)
|
||||
id = require('_GenericMarshal').PointerSize == 4 ? 31 : 30;
|
||||
break;
|
||||
case 'darwin':
|
||||
id = require('os').arch() == 'x64' ? 16 : 29;
|
||||
break;
|
||||
try
|
||||
{
|
||||
id = require('os').arch() == 'x64' ? 16 : 29;
|
||||
}
|
||||
catch (xx)
|
||||
{
|
||||
id = 16;
|
||||
}
|
||||
break; break;
|
||||
}
|
||||
if (id != null) { Object.defineProperty(require('MeshAgent'), 'ARCHID', { value: id }); }
|
||||
}
|
||||
|
@ -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 }); }
|
||||
|
Loading…
Reference in New Issue
Block a user