feat(botfilter): add clientCache.observeResponse
This commit is contained in:
1 parent
54a0655e4c
commit
c0b2da8553
1 file changed
+5
@@ -115,3 +115,8 @@ func (c *clientCache) observeRequest(ip string, observation requestObservation)
|
||||
return cacheResult{score: score}
|
||||
}
|
||||
|
||||
func (c *clientCache) observeResponse(ip string, status int, points int, now time.Time) cacheResult {
|
||||
if ip == "" || status != 404 || points <= 0 {
|
||||
return cacheResult{}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user