mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-12-03 02:10:25 +08:00
出站规则集中WAF跳转到下一个规则分组可以选择出站规则分组
This commit is contained in:
@@ -56,7 +56,7 @@ func (this *UpdateSetPopupAction) RunGet(params struct {
|
||||
},
|
||||
}
|
||||
|
||||
actionMaps := []maps.Map{}
|
||||
var actionMaps = []maps.Map{}
|
||||
for _, action := range firewallconfigs.AllActions {
|
||||
actionMaps = append(actionMaps, maps.Map{
|
||||
"name": action.Name,
|
||||
@@ -119,7 +119,7 @@ func (this *UpdateSetPopupAction) RunPost(params struct {
|
||||
if len(params.RulesJSON) == 0 {
|
||||
this.Fail("请添加至少一个规则")
|
||||
}
|
||||
rules := []*firewallconfigs.HTTPFirewallRule{}
|
||||
var rules = []*firewallconfigs.HTTPFirewallRule{}
|
||||
err = json.Unmarshal(params.RulesJSON, &rules)
|
||||
if err != nil {
|
||||
this.ErrorPage(err)
|
||||
|
||||
Reference in New Issue
Block a user