mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-26 14:30:12 +08:00
fix(firewalld): remove (default)
from the end of zone string (#11998)
This commit is contained in:
parent
1868c15ec6
commit
b7904ae548
@ -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:'
|
||||
|
Loading…
Reference in New Issue
Block a user