IP名单新增IPv6和所有IP两种类型

This commit is contained in:
刘祥超
2021-02-02 15:25:11 +08:00
parent e22a9d061c
commit a0635a97d5
25 changed files with 681 additions and 322 deletions

View File

@@ -16,6 +16,7 @@ func (this *GroupsAction) Init() {
}
func (this *GroupsAction) RunGet(params struct {
ServerId int64
FirewallPolicyId int64
Type string
}) {
@@ -70,5 +71,13 @@ func (this *GroupsAction) RunGet(params struct {
this.Data["groups"] = groupMaps
// WAF是否启用
webConfig, err := dao.SharedHTTPWebDAO.FindWebConfigWithServerId(this.AdminContext(), params.ServerId)
if err != nil {
this.ErrorPage(err)
return
}
this.Data["wafIsOn"] = webConfig.FirewallRef != nil && webConfig.FirewallRef.IsOn
this.Show()
}