Fixed server wake-on-lan.

This commit is contained in:
Ylian Saint-Hilaire 2020-08-15 20:29:40 -07:00
parent b8a34d51ed
commit 64ae611eee
2 changed files with 2 additions and 2 deletions

View File

@ -231,7 +231,7 @@ module.exports.CreateMeshScanner = function (parent) {
obj.wakeOnLan = function (macs) { obj.wakeOnLan = function (macs) {
var i, j; var i, j;
for (i in macs) { for (i in macs) {
var mac = macs[i]; var mac = macs[i].split(':').join('');
var hexpacket = 'FFFFFFFFFFFF'; var hexpacket = 'FFFFFFFFFFFF';
for (j = 0; j < 16; j++) { hexpacket += mac; } for (j = 0; j < 16; j++) { hexpacket += mac; }
var wakepacket = Buffer.from(hexpacket, 'hex'); var wakepacket = Buffer.from(hexpacket, 'hex');

View File

@ -32802,4 +32802,4 @@
] ]
} }
] ]
} }