diff --git a/jellyfin_wol.py b/jellyfin_wol.py index 15a0132..f48a0d1 100755 --- a/jellyfin_wol.py +++ b/jellyfin_wol.py @@ -14,7 +14,7 @@ class SimpleHTTPRequestHandler(BaseHTTPRequestHandler): # Check if the payload indicates a user login event if 'NotificationType' in post_data and 'AuthenticationSuccess' in post_data['NotificationType']: print("User login detected! Waking up NAS.") - send_magic_packet('1c:1b:0d:99:5c:48') + send_magic_packet(os.getenv('MAC_ADDRESS', 'FF:FF:FF:FF:FF:FF')) # Send a 200 OK response self.send_response(200)