mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-12 20:21:02 +01:00
fix(firewalld): remove (default)
from the end of zone string (#11998)
This commit is contained in:
parent
1868c15ec6
commit
b7904ae548
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ function fwl () {
|
||||||
zones=("${(@f)$(sudo firewall-cmd --get-active-zones | grep -v 'interfaces\|sources')}")
|
zones=("${(@f)$(sudo firewall-cmd --get-active-zones | grep -v 'interfaces\|sources')}")
|
||||||
|
|
||||||
for i in $zones; do
|
for i in $zones; do
|
||||||
sudo firewall-cmd --zone $i --list-all
|
sudo firewall-cmd --zone ${i/ \(default\)} --list-all
|
||||||
done
|
done
|
||||||
|
|
||||||
echo 'Direct Rules:'
|
echo 'Direct Rules:'
|
||||||
|
|
Loading…
Reference in a new issue