feat(botfilter): add compiledConfig
This commit is contained in:
1 parent
399281820b
commit
d139129033
1 file changed
+13
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user