mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-01-25 21:53:14 -05: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;
|
id = require('_GenericMarshal').PointerSize == 4 ? 31 : 30;
|
||||||
break;
|
break;
|
||||||
case 'darwin':
|
case 'darwin':
|
||||||
id = require('os').arch() == 'x64' ? 16 : 29;
|
try
|
||||||
break;
|
{
|
||||||
|
id = require('os').arch() == 'x64' ? 16 : 29;
|
||||||
|
}
|
||||||
|
catch (xx)
|
||||||
|
{
|
||||||
|
id = 16;
|
||||||
|
}
|
||||||
|
break; break;
|
||||||
}
|
}
|
||||||
if (id != null) { Object.defineProperty(require('MeshAgent'), 'ARCHID', { value: id }); }
|
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;
|
id = require('_GenericMarshal').PointerSize == 4 ? 31 : 30;
|
||||||
break;
|
break;
|
||||||
case 'darwin':
|
case 'darwin':
|
||||||
id = require('os').arch() == 'x64' ? 16 : 29;
|
try
|
||||||
|
{
|
||||||
|
id = require('os').arch() == 'x64' ? 16 : 29;
|
||||||
|
}
|
||||||
|
catch(xx)
|
||||||
|
{
|
||||||
|
id = 16;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (id != null) { Object.defineProperty(require('MeshAgent'), 'ARCHID', { value: id }); }
|
if (id != null) { Object.defineProperty(require('MeshAgent'), 'ARCHID', { value: id }); }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user