1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

Removed depricated new Buffer() usage.

This commit is contained in:
Ylian Saint-Hilaire 2020-08-06 13:23:17 -07:00
parent 0478b9376f
commit 98f2950c00
8 changed files with 71 additions and 71 deletions

View file

@ -456,10 +456,10 @@ module.exports.CreateAmtRedirect = function (module, domain, user, webserver, me
}
obj.xxSend = function (x) {
if (obj.redirTrace) { console.log("REDIR-SEND(" + x.length + "): " + new Buffer(x, "binary").toString('hex'), typeof x); }
if (obj.redirTrace) { console.log("REDIR-SEND(" + x.length + "): " + Buffer.from(x, "binary").toString('hex'), typeof x); }
//obj.Debug("Send(" + x.length + "): " + webserver.common.rstr2hex(x));
//obj.forwardclient.write(x); // FIXES CIRA
obj.forwardclient.write(new Buffer(x, "binary"));
obj.forwardclient.write(Buffer.from(x, "binary"));
}
obj.Send = function (x) {