Skip to content

Commit

Permalink
Also send broadcast for WOL
Browse files Browse the repository at this point in the history
  • Loading branch information
FrogTheFrog committed Aug 22, 2024
1 parent 0245092 commit 32b6b6f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions defaults/python/lib/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,4 +147,5 @@ def _try_parse_info(ip_address: str):
for family, address_info in infos:
address_log = address if address == address_info else f"{address} ({address_info})"
logger.info(f"Sending WOL ({mac}) to {address_log}")
send_magic_packet(mac, ip_address="255.255.255.255" if family == socket.AF_INET else "ff02::1", address_family=family, port=default_port)
send_magic_packet(mac, ip_address=address_info, address_family=family, port=default_port)

0 comments on commit 32b6b6f

Please sign in to comment.