Skip to content

Commit

Permalink
firewall: during migration, replace : with - for port ranges
Browse files Browse the repository at this point in the history
  • Loading branch information
Salamandar committed Feb 25, 2025
1 parent b29d9ba commit e89e55c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/migrations/0032_firewall_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def firewall_file_migrate(self) -> None:
}
for proto in ["TCP", "UDP"]:
new_data[proto.lower()] = {
port: {
port if isinstance(port, int) else port.replace(":", "-"): {
"open": True,
"upnp": port in old_data["uPnP"][proto],
"comment": self._app_comment_of_port(port),
Expand Down

0 comments on commit e89e55c

Please sign in to comment.