From 789558bf28a8cc52f149886a6050e46aaeada9e2 Mon Sep 17 00:00:00 2001 From: hoelee Date: Wed, 18 Mar 2026 09:58:00 +0800 Subject: [PATCH] feat(botfilter): add compileConfig --- config.go | 5 +++++ 1 file changed, 5 insertions(+) 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") + } +