mirror of
https://gitee.com/fit2cloud-feizhiyun/1Panel.git
synced 2024-12-06 05:48:18 +08:00
fix: 解决 Firewalld 防火墙列表显示不全的问题 (#5684)
This commit is contained in:
parent
966b10fbb5
commit
9ca69732ca
@ -108,7 +108,7 @@ func (f *Firewall) ListPort() ([]FireInfo, error) {
|
||||
continue
|
||||
}
|
||||
itemRule := f.loadInfo(rule)
|
||||
if (len(itemRule.Port) != 0 && itemRule.Family == "ipv4") || (itemRule.Family == "ipv6" && len(itemRule.Address) != 0) {
|
||||
if len(itemRule.Port) != 0 && (itemRule.Family == "ipv4" || (itemRule.Family == "ipv6" && len(itemRule.Address) != 0)) {
|
||||
datas = append(datas, itemRule)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user