mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-12-27 15:46:34 +08:00
减少一些不必要的访问统计
This commit is contained in:
@@ -251,6 +251,7 @@ func (this *WAF) MatchRequest(req requests.Request, writer http.ResponseWriter,
|
||||
var rawPath = req.WAFRaw().URL.Path
|
||||
if rawPath == CaptchaPath {
|
||||
req.DisableAccessLog()
|
||||
req.DisableStat()
|
||||
captchaValidator.Run(req, writer, defaultCaptchaType)
|
||||
return
|
||||
}
|
||||
@@ -258,6 +259,7 @@ func (this *WAF) MatchRequest(req requests.Request, writer http.ResponseWriter,
|
||||
// Get 302验证
|
||||
if rawPath == Get302Path {
|
||||
req.DisableAccessLog()
|
||||
req.DisableStat()
|
||||
get302Validator.Run(req, writer)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user