mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2026-05-02 13:05:20 +08:00
可以单个服务中的WAF中设置出入站规则、黑白名单等
This commit is contained in:
@@ -18,9 +18,11 @@ func (this *AllowListAction) Init() {
|
||||
}
|
||||
|
||||
func (this *AllowListAction) RunGet(params struct {
|
||||
ServerId int64
|
||||
ServerId int64
|
||||
FirewallPolicyId int64
|
||||
}) {
|
||||
this.Data["featureIsOn"] = true
|
||||
this.Data["firewallPolicyId"] = params.FirewallPolicyId
|
||||
|
||||
listId, err := dao.SharedIPListDAO.FindAllowIPListIdWithServerId(this.AdminContext(), params.ServerId)
|
||||
if err != nil {
|
||||
|
||||
@@ -18,9 +18,11 @@ func (this *DenyListAction) Init() {
|
||||
}
|
||||
|
||||
func (this *DenyListAction) RunGet(params struct {
|
||||
ServerId int64
|
||||
FirewallPolicyId int64
|
||||
ServerId int64
|
||||
}) {
|
||||
this.Data["featureIsOn"] = true
|
||||
this.Data["firewallPolicyId"] = params.FirewallPolicyId
|
||||
|
||||
listId, err := dao.SharedIPListDAO.FindDenyIPListIdWithServerId(this.AdminContext(), params.ServerId)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user