From a949a3ed4d6137c38d71130c5abf0da7123889c6 Mon Sep 17 00:00:00 2001 From: hoelee Date: Tue, 17 Mar 2026 10:05:00 +0800 Subject: [PATCH] feat(botfilter): add compiledConfig --- config.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/config.go b/config.go index f3e59a2f..a782980b 100644 --- a/config.go +++ b/config.go @@ -60,3 +60,16 @@ func CreateConfig() *Config { } } +type compiledConfig struct { + Config + banDuration time.Duration + scoreWindow time.Duration + whitelist []netip.Prefix + trustedProxies []netip.Prefix + blockedAgents []string + blockedPaths []string + blockedExts []string + randomPaths []string + clientIPHeader string +} +