diff options
| author | Xe Iaso <me@xeiaso.net> | 2025-02-14 13:39:34 -0500 |
|---|---|---|
| committer | Xe Iaso <me@xeiaso.net> | 2025-02-14 13:39:34 -0500 |
| commit | 1acc1602f2ff678c0e4bf49fa62345505ec0aa35 (patch) | |
| tree | d2eec95941c9cd0a53f6de89cfde44222aa55940 /cmd/anubis/policy.go | |
| parent | 17c44496aaa77e8d0a499db8c044cb42ab00086b (diff) | |
| download | x-1acc1602f2ff678c0e4bf49fa62345505ec0aa35.tar.xz x-1acc1602f2ff678c0e4bf49fa62345505ec0aa35.zip | |
cmd/anubis: enable DNSBL checking via dronebl
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'cmd/anubis/policy.go')
| -rw-r--r-- | cmd/anubis/policy.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd/anubis/policy.go b/cmd/anubis/policy.go index 7d778c7..6e2241e 100644 --- a/cmd/anubis/policy.go +++ b/cmd/anubis/policy.go @@ -24,7 +24,8 @@ var ( type ParsedConfig struct { orig config.Config - Bots []Bot + Bots []Bot + DNSBL bool } type Bot struct { @@ -85,6 +86,8 @@ func parseConfig(fin io.Reader, fname string) (*ParsedConfig, error) { return nil, fmt.Errorf("errors validating policy config JSON %s: %w", fname, err) } + result.DNSBL = c.DNSBL + return result, nil } |
