IP名单列表显示代号

This commit is contained in:
GoEdgeLab
2024-05-05 19:51:17 +08:00
parent 71c7b7dcc7
commit 2da73788ec
4 changed files with 11 additions and 5 deletions

View File

@@ -36,8 +36,8 @@ func (this *ListsAction) RunGet(params struct {
this.ErrorPage(err)
return
}
count := countResp.Count
page := this.NewPage(count)
var count = countResp.Count
var page = this.NewPage(count)
this.Data["page"] = page.AsHTML()
listsResp, err := this.RPC().IPListRPC().ListEnabledIPLists(this.AdminContext(), &pb.ListEnabledIPListsRequest{
@@ -65,6 +65,7 @@ func (this *ListsAction) RunGet(params struct {
"id": list.Id,
"isOn": list.IsOn,
"name": list.Name,
"code": list.Code,
"description": list.Description,
"countItems": countItems,
"type": list.Type,

View File

@@ -49,7 +49,7 @@ func (this *IndexAction) RunGet(params struct {
this.Data["webId"] = webConfig.Id
this.Data["firewallConfig"] = webConfig.FirewallRef
// 获取当前服务所在集群的WAF设置
// 获取当前网站所在集群的WAF设置
firewallPolicy, err := dao.SharedHTTPFirewallPolicyDAO.FindEnabledHTTPFirewallPolicyWithServerId(this.AdminContext(), params.ServerId)
if err != nil {
this.ErrorPage(err)