102-byte Wake-on-LAN message needs to be sent to 255.255.255.255 on port 0, 7, or 9. However when I attempt this from an Edge driver, it is causing the driver to spontaneously restart. Is this a bug and/or is the platform prohibiting me from sending to that address?
local BROADCAST_ADDR = '255.255.255.255' local BROADCAST_PORT = 0 local sock = assert(socket.udp(), "WOL socket") assert(sock:setsockname("0.0.0.0",0)) -- also tried omiting this line log.info ("Sending WOL magic packet for MAC address", macaddr) assert(sock:sendto(magic_packet, BROADCAST_ADDR, BROADCAST_PORT)) -- crashes here
2021-12-09T18:01:18.403355854+00:00 DEBUG LAN Device Monitor Wake on LAN requested; comand= push 2021-12-09T18:01:18.411860926+00:00 INFO LAN Device Monitor Sending WOL magic packet for MAC address E8-E0-B7-79-F9-65 2021-12-09T18:01:24.107964079+00:00 TRACE LAN Device Monitor Setup driver landevmonDriver with lifecycle handlers: DeviceLifecycleDispatcher: landevmonDriver default_handlers: infoChanged: driverSwitched: removed: init: added: deleted: doConfigure: child_dispatchers: 2021-12-09T18:01:24.112827245+00:00 TRACE LAN Device Monitor Setup driver landevmonDriver with Capability handlers: CapabilityCommandDispatcher: landevmonDriver default_handlers: partyvoice23922.wakeonlan: push partyvoice23922.moncontrol: setSwitch partyvoice23922.createanother: push child_dispatchers: 2021-12-09T18:01:24.116235620+00:00 INFO LAN Device Monitor LAN Device Monitor Driver v1.1 started 2021-12-09T18:01:24.231019412+00:00 TRACE LAN Device Monitor Received event with handler environment_info 2021-12-09T18:01:24.245978829+00:00 TRACE LAN Device Monitor Found DeviceLifecycleDispatcher handler in landevmonDriver