mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-26 23:25:53 -05:00
Fixed WoL issue where MulticastTTL and MulticastInterface needed to be set
This commit is contained in:
parent
b53956efdb
commit
81c8326c9f
@ -660,6 +660,8 @@ function createMeshCore(agent) {
|
||||
var socket = require('dgram').createSocket({ type: 'udp4' });
|
||||
socket.bind({ address: addr.address });
|
||||
socket.setBroadcast(true);
|
||||
socket.setMulticastInterface(addr.address);
|
||||
socket.setMulticastTTL(1);
|
||||
socket.send(magicbin, 7, '255.255.255.255');
|
||||
socket.descriptorMetadata = 'WoL (' + addr.address + ' => ' + hexMac + ')';
|
||||
count++;
|
||||
|
Loading…
Reference in New Issue
Block a user