mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2026-04-28 09:05:19 +08:00
IP名单新增IPv6和所有IP两种类型
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user