mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-04 05:00:25 +08:00
优化IP名单
* 增加IP灰名单,用于仅记录并观察IP
This commit is contained in:
@@ -7,6 +7,7 @@ import (
|
||||
"github.com/TeaOSLab/EdgeAdmin/internal/rpc"
|
||||
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/actionutils"
|
||||
"github.com/TeaOSLab/EdgeCommon/pkg/rpc/pb"
|
||||
"github.com/TeaOSLab/EdgeCommon/pkg/serverconfigs/ipconfigs"
|
||||
"github.com/iwind/TeaGo/maps"
|
||||
)
|
||||
|
||||
@@ -26,10 +27,12 @@ func InitIPList(action *actionutils.ParentAction, listId int64) error {
|
||||
|
||||
var typeName = ""
|
||||
switch list.Type {
|
||||
case "black":
|
||||
case ipconfigs.IPListTypeBlack:
|
||||
typeName = "黑名单"
|
||||
case "white":
|
||||
case ipconfigs.IPListTypeWhite:
|
||||
typeName = "白名单"
|
||||
case ipconfigs.IPListTypeGrey:
|
||||
typeName = "灰名单"
|
||||
}
|
||||
|
||||
// IP数量
|
||||
|
||||
Reference in New Issue
Block a user