mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-05 00:34:01 +08:00
限制统计数据中域名长度
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user