把tcp/udp的连接数记为访问量,增加tcp域名排名记录(需要SNI连接)

This commit is contained in:
刘祥超
2021-10-08 15:50:43 +08:00
parent 09467a4d08
commit 1b2f01f0f4
3 changed files with 23 additions and 1 deletions

View File

@@ -87,7 +87,7 @@ func (this *TrafficStatManager) Start(configFunc func() *nodeconfigs.NodeConfig)
// Add 添加流量
func (this *TrafficStatManager) Add(serverId int64, domain string, bytes int64, cachedBytes int64, countRequests int64, countCachedRequests int64, countAttacks int64, attackBytes int64) {
if bytes == 0 {
if bytes == 0 && countRequests == 0 {
return
}