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:
parent
0478b9376f
commit
98f2950c00
8 changed files with 71 additions and 71 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue