mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2026-04-30 11:35:21 +08:00
WAF支持更多动作
This commit is contained in:
18
internal/web/actions/default/servers/iplists/levelOptions.go
Normal file
18
internal/web/actions/default/servers/iplists/levelOptions.go
Normal file
@@ -0,0 +1,18 @@
|
||||
// Copyright 2021 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
|
||||
|
||||
package iplists
|
||||
|
||||
import (
|
||||
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/actionutils"
|
||||
"github.com/TeaOSLab/EdgeCommon/pkg/serverconfigs/firewallconfigs"
|
||||
)
|
||||
|
||||
type LevelOptionsAction struct {
|
||||
actionutils.ParentAction
|
||||
}
|
||||
|
||||
func (this *LevelOptionsAction) RunPost(params struct{}) {
|
||||
this.Data["levels"] = firewallconfigs.FindAllFirewallEventLevels()
|
||||
|
||||
this.Success()
|
||||
}
|
||||
Reference in New Issue
Block a user