mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 10:17:17 +08:00
feat: 发布v2.3.8
This commit is contained in:
@@ -150,7 +150,7 @@ func (r *Firewall) Port(rule FireInfo, operation Operation) error {
|
||||
return fmt.Errorf("invalid port range: %d-%d", rule.PortStart, rule.PortEnd)
|
||||
}
|
||||
// 不支持的切换使用rich rules
|
||||
if rule.Direction != "in" || (rule.Family != "" && rule.Family != "ipv4") || rule.Address != "" || rule.Strategy != "accept" {
|
||||
if (rule.Family != "" && rule.Family != "ipv4") || rule.Direction != "in" || rule.Address != "" || rule.Strategy != "accept" {
|
||||
return r.RichRules(rule, operation)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user