From e74e5567987ce09dde47de130abde0f1dbf8c826 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Tue, 8 Apr 2014 12:08:48 +0200 Subject: fix wol --- wol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wol b/wol index 8f00b98..4da2e4e 100755 --- a/wol +++ b/wol @@ -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) -- cgit v1.1-2-g2b99