mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-07 18:50:27 +08:00
在对IP封禁时,不写入访问日志
This commit is contained in:
@@ -13,6 +13,10 @@ var requestId int64 = 1_0000_0000_0000_0000
|
||||
|
||||
// 日志
|
||||
func (this *HTTPRequest) log() {
|
||||
if this.disableLog {
|
||||
return
|
||||
}
|
||||
|
||||
// 计算请求时间
|
||||
this.requestCost = time.Since(this.requestFromTime).Seconds()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user