From 9e9a41aedd0ee6ac6744a1ed291f7e452e089b46 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 20 Oct 2020 15:10:02 +0100 Subject: [Project] Rbl: Migrate to `checks` --- lualib/plugins/rbl.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lualib/plugins/rbl.lua') diff --git a/lualib/plugins/rbl.lua b/lualib/plugins/rbl.lua index 7105d73a4..4eeff7b09 100644 --- a/lualib/plugins/rbl.lua +++ b/lualib/plugins/rbl.lua @@ -142,13 +142,15 @@ local function convert_checks(rule) rspamd_logger.errx(rspamd_config, 'rbl rule %s has check %s which requires an argument', rule.symbol, check) return nil - else - rule[check] = check_type end end + + rule[check] = check_type + if not check_type.connfilter then all_connfilter = false end + if not check_type then rspamd_logger.errx(rspamd_config, 'rbl rule %s has invalid check type: %s', rule.symbol, check) -- cgit v1.2.3