mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-12-16 07:46:36 +08:00
计算CC的时候不再跨时间范围累积
This commit is contained in:
@@ -114,7 +114,7 @@ func (this *CCCheckpoint) RequestValue(req requests.Request, param string, optio
|
||||
if len(key) == 0 {
|
||||
key = req.WAFRemoteIP()
|
||||
}
|
||||
value = this.cache.IncreaseInt64(key, int64(1), time.Now().Unix()+period)
|
||||
value = this.cache.IncreaseInt64(key, int64(1), time.Now().Unix()+period, false)
|
||||
}
|
||||
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user