feat(botfilter): add compiledConfig

This commit is contained in:
hoelee committed 2026-03-17 10:05:00 +08:00
1 parent 3299e1a847
commit a949a3ed4d
1 file changed
+13
+13
View File
@@ -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
}