Skip to content

Commit

Permalink
Update firewall.py: do not actually enable upnp if no upnp device is …
Browse files Browse the repository at this point in the history
…available on the network
  • Loading branch information
alexAubin authored Mar 2, 2025
1 parent 5b127c7 commit 207de42
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/firewall.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,9 @@ def refresh(self, firewall: "YunoFirewall") -> bool:
return status

def enable(self) -> None:
if not self.find_gid():
logger.error("Not enabling UPnP because no UPnP device was found")
return
if not self.enabled():
# Add cron job
self.UPNP_CRON_JOB.write_text(
Expand Down

0 comments on commit 207de42

Please sign in to comment.