From ed7285365d221c6bf9e4fd20729ff1f2c5254bf6 Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Sat, 15 Aug 2020 20:29:40 -0700 Subject: [PATCH] Fixed server wake-on-lan. --- meshscanner.js | 2 +- translate/translate.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/meshscanner.js b/meshscanner.js index 9f98743a..cc182ee2 100644 --- a/meshscanner.js +++ b/meshscanner.js @@ -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'); diff --git a/translate/translate.json b/translate/translate.json index fd49faa9..7d8c7db8 100644 --- a/translate/translate.json +++ b/translate/translate.json @@ -32802,4 +32802,4 @@ ] } ] -} +} \ No newline at end of file