限制统计数据中域名长度

This commit is contained in:
GoEdgeLab
2023-11-13 17:07:55 +08:00
parent 73cbf3bbec
commit 7edf4f9b13

View File

@@ -142,7 +142,7 @@ func (this *TrafficStatManager) Add(userId int64, serverId int64, domain string,
item.PlanId = planId item.PlanId = planId
// 单个域名流量 // 单个域名流量
if len(domain) <= 64 { if len(domain) < 128 {
var domainKey = types.String(timestamp) + "@" + domain var domainKey = types.String(timestamp) + "@" + domain
serverDomainMap, ok := this.domainsMap[serverId] serverDomainMap, ok := this.domainsMap[serverId]
if !ok { if !ok {