feat(botfilter): add clientState

This commit is contained in:
hoelee committed 2026-02-02 18:44:00 +08:00
1 parent 7cfa806088
commit 3bfa9a3c5d
1 file changed
+10
+10
View File
@@ -10,3 +10,13 @@ type scoreEvent struct {
points int
}
type clientState struct {
banUntil time.Time
lastSeen time.Time
requests int
sawHome bool
sawStatic bool
sawFavicon bool
events []scoreEvent
}