Unverified Commit b7904ae5 authored by 家鳖大帝's avatar 家鳖大帝 Committed by GitHub

fix(firewalld): remove ` (default)` from the end of zone string (#11998)

parent 1868c15e
......@@ -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:'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment