diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-10-20 15:10:02 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-10-20 15:10:02 +0100 |
commit | 9e9a41aedd0ee6ac6744a1ed291f7e452e089b46 (patch) | |
tree | 008f4c5b0b01ba9c7177a1576a74ca4fe809bf6f /lualib/plugins | |
parent | e95b2fa66a8d130c9f7260cf71178df5762f7746 (diff) | |
download | rspamd-9e9a41aedd0ee6ac6744a1ed291f7e452e089b46.tar.gz rspamd-9e9a41aedd0ee6ac6744a1ed291f7e452e089b46.zip |
[Project] Rbl: Migrate to `checks`
Diffstat (limited to 'lualib/plugins')
-rw-r--r-- | lualib/plugins/rbl.lua | 6 |
1 files changed, 4 insertions, 2 deletions
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) |