Skip to content

Commit

Permalink
fix(firewalld): remove (default) from the end of zone string (ohmy…
Browse files Browse the repository at this point in the history
  • Loading branch information
Z4HD authored Oct 24, 2023
1 parent 1868c15 commit b7904ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/firewalld/firewalld.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function fwl () {
zones=("${(@f)$(sudo firewall-cmd --get-active-zones | grep -v 'interfaces\|sources')}")

for i in $zones; do
sudo firewall-cmd --zone $i --list-all
sudo firewall-cmd --zone ${i/ \(default\)} --list-all
done

echo 'Direct Rules:'
Expand Down

0 comments on commit b7904ae

Please sign in to comment.