From 27d2fc8b1ea946ff3f6ddedde9ebeec242d3016a Mon Sep 17 00:00:00 2001 From: Finn Christiansen Date: Mon, 9 Jun 2025 22:26:23 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20use=20MAC=20address=20from=20env?= =?UTF-8?q?ironment=20file?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jellyfin_wol.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)