]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Set RBL checks to bool true 5314/head
authorJose Celestino <japc@co.sapo.pt>
Thu, 23 Jan 2025 12:38:15 +0000 (12:38 +0000)
committerJose Celestino <japc@co.sapo.pt>
Thu, 23 Jan 2025 12:38:15 +0000 (12:38 +0000)
lualib/plugins/rbl.lua
src/plugins/lua/rbl.lua

index 50cabd633fa8e1826801eabf2f937547bdd972bf..074fc7f0cf6a50edf88a4b51c29385920faf4349 100644 (file)
@@ -166,8 +166,6 @@ local function convert_checks(rule, name)
           end
         end
 
-        rule[check] = check_type
-
         if not check_type.connfilter then
           all_connfilter = false
         end
@@ -177,6 +175,8 @@ local function convert_checks(rule, name)
               name, check)
           return nil
         end
+
+        rule[check] = true
       else
         rspamd_logger.infox(rspamd_config, 'disable check %s in %s: excluded explicitly',
             check, name)
index 3c7396cf89669daaa0f73319f7041e15722055f4..bcdef5ce18d254f784732838febf5b316bac6b6c 100644 (file)
@@ -594,9 +594,9 @@ local function gen_rbl_callback(rule)
       limit = rule.requests_limit,
       ignore_redirected = true,
       ignore_ip = rule.no_ip,
-      need_images = rule.images and true or false,
+      need_images = rule.images,
       need_emails = false,
-      need_content = rule.content_urls and true or false,
+      need_content = rule.content_urls,
       esld_limit = esld_lim,
       no_cache = true,
     }