feat(botfilter): add clientState

This commit is contained in:
hoelee committed 2026-01-15 18:44:00 +08:00
1 parent 46626a4cb8
commit b788f1db54
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
}