diff --git a/wol.py b/wol.py index 62c96a5..b74361c 100755 --- a/wol.py +++ b/wol.py @@ -96,7 +96,7 @@ def handle(self): logging.debug('Connected {}'.format(client)) try: while self.rfile: - hostname = self.rfile.readline().decode('ascii').strip() + hostname = self.rfile.readline().strip() if hostname: logging.info('Request WoL at "{}" from {}'.format(hostname, client)) self.wfile.write(b"success\n" if wake(hostname) else b"failed\n")