mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-25 22:55:52 -05:00
Fixed server wake-on-lan.
This commit is contained in:
parent
b8a34d51ed
commit
64ae611eee
@ -231,7 +231,7 @@ module.exports.CreateMeshScanner = function (parent) {
|
||||
obj.wakeOnLan = function (macs) {
|
||||
var i, j;
|
||||
for (i in macs) {
|
||||
var mac = macs[i];
|
||||
var mac = macs[i].split(':').join('');
|
||||
var hexpacket = 'FFFFFFFFFFFF';
|
||||
for (j = 0; j < 16; j++) { hexpacket += mac; }
|
||||
var wakepacket = Buffer.from(hexpacket, 'hex');
|
||||
|
@ -32802,4 +32802,4 @@
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user