summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--server/lib/wolhelper.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/lib/wolhelper.js b/server/lib/wolhelper.js
index eaca0e6..646ba78 100644
--- a/server/lib/wolhelper.js
+++ b/server/lib/wolhelper.js
@@ -10,7 +10,7 @@ function wakeUp (clients) {
let client = clients[i]
// Regex for mac address
- const regex = /^([0-9A-F]{2}[:-]){5}([0-9A-F]{2})$/
+ const regex = /^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$/
if (client.mac !== null && client.ip !== null && regex.test(client.mac)) {
console.log('Waking up: ' + client.name + ' (' + client.mac + ')')
wol.wake(client.mac, { address: client.ip.slice(0, client.ip.lastIndexOf('.') + 1) + '255' }, err => { if (err) console.log(err) })