summaryrefslogtreecommitdiffstats
path: root/wol
diff options
context:
space:
mode:
Diffstat (limited to 'wol')
-rwxr-xr-xwol2
1 files changed, 1 insertions, 1 deletions
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)