feat(botfilter): add clientCache.observeResponse

This commit is contained in:
hoelee committed 2026-02-19 12:36:00 +08:00
1 parent 0e643abf66
commit e133bb46c3
1 file changed
+5
+5
View File
@@ -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{}
}