diff --git a/config.go b/config.go index a782980b..1e8715d2 100644 --- a/config.go +++ b/config.go @@ -73,3 +73,8 @@ type compiledConfig struct { clientIPHeader string } +func compileConfig(input *Config) (*compiledConfig, error) { + if input == nil { + return nil, fmt.Errorf("botfilter: configuration is nil") + } +