mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2026-04-25 06:25:17 +08:00
优化IP名单
* 增加IP灰名单,用于仅记录并观察IP
This commit is contained in:
@@ -60,7 +60,7 @@ func (this *CreateIPPopupAction) RunPost(params struct {
|
||||
CSRF *actionutils.CSRF
|
||||
}) {
|
||||
// 校验IPList
|
||||
if params.ListId != firewallconfigs.GlobalListId {
|
||||
if !firewallconfigs.IsGlobalListId(params.ListId) {
|
||||
existsResp, err := this.RPC().IPListRPC().ExistsEnabledIPList(this.AdminContext(), &pb.ExistsEnabledIPListRequest{IpListId: params.ListId})
|
||||
if err != nil {
|
||||
this.ErrorPage(err)
|
||||
|
||||
Reference in New Issue
Block a user