diff options
| -rwxr-xr-x | wol | 2 | 
1 files changed, 1 insertions, 1 deletions
| @@ -21,7 +21,7 @@ def WakeOnLan(ethernet_address, ip=0):              int(addr_byte[4], 16),              int(addr_byte[5], 16))      # Build the Wake-On-LAN "Magic Packet"... -    msg = '\xff' * 6 + hw_addr * 16 +    msg = bytes(('\xff'*6), 'UTF-8') + (hw_addr*16)      # send it      s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)      s.setsockopt(socket.SOL_SOCKET, socket.SO_BROADCAST, 1) | 
