diff --git a/agents/modules_meshcmd/amt-ider.js b/agents/modules_meshcmd/amt-ider.js index 072fa963..98fdb12b 100644 --- a/agents/modules_meshcmd/amt-ider.js +++ b/agents/modules_meshcmd/amt-ider.js @@ -98,7 +98,7 @@ module.exports = function CreateAmtRemoteIder() { // Private method obj.ProcessData = function (data) { obj.bytesFromAmt += data.length; - if (obj.acc == null) { obj.acc = data; } else { obj.acc = Buffer.concat(obj.acc, data); } + if (obj.acc == null) { obj.acc = data; } else { obj.acc = Buffer.concat([obj.acc, data]); } if (obj.debug) console.log('IDER-ProcessData', obj.acc.length, obj.acc.toString('hex')); // Process as many commands as possible diff --git a/amt/amt-ider-module.js b/amt/amt-ider-module.js index 78be7d36..4808482e 100644 --- a/amt/amt-ider-module.js +++ b/amt/amt-ider-module.js @@ -152,7 +152,7 @@ module.exports.CreateAmtRemoteIder = function (webserver, meshcentral) { obj.ProcessData = function (data) { data = Buffer.from(data, 'binary'); obj.bytesFromAmt += data.length; - if (obj.acc == null) { obj.acc = data; } else { obj.acc = Buffer.concat(obj.acc, data); } + if (obj.acc == null) { obj.acc = data; } else { obj.acc = Buffer.concat([obj.acc, data]); } if (obj.debug) console.log('IDER-ProcessData', obj.acc.length, obj.acc.toString('hex')); // Process as many commands as possible