mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Improved server wake-on-lan.
This commit is contained in:
parent
e3ae2733af
commit
341c6e72b2
2 changed files with 23 additions and 16 deletions
|
@ -3594,7 +3594,7 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
|
|||
if (macs.length == 0) return;
|
||||
|
||||
// Have the server send a wake-on-lan packet (Will not work in WAN-only)
|
||||
if (parent.parent.meshScanner != null) { parent.parent.meshScanner.wakeOnLan(macs); }
|
||||
if (parent.parent.meshScanner != null) { parent.parent.meshScanner.wakeOnLan(macs, node.host); }
|
||||
|
||||
// Get the list of device groups this user as wake permissions on
|
||||
var targets = [], targetDeviceGroups = parent.GetAllMeshWithRights(user, MESHRIGHT_WAKEDEVICE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue