commit 97d6e1e: [Minor] Rbl: Some more whitelist fixes

Vsevolod Stakhov vsevolod at highsecure.ru
Tue Aug 27 17:49:11 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-08-27 18:42:40 +0100
URL: https://github.com/rspamd/rspamd/commit/97d6e1e7197ee4b804a09a164c81a1a9e68e7910

[Minor] Rbl: Some more whitelist fixes

---
 src/plugins/lua/rbl.lua | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/plugins/lua/rbl.lua b/src/plugins/lua/rbl.lua
index f38cf6981..b03bcaf6d 100644
--- a/src/plugins/lua/rbl.lua
+++ b/src/plugins/lua/rbl.lua
@@ -259,6 +259,8 @@ end
 
 local function gen_rbl_callback(rule)
   local function is_whitelisted(task, req, req_str, whitelist, what)
+    if rule.ignore_whitelist then return false end
+
     if rule.whitelist then
       if rule.whitelist:get_key(req) then
         lua_util.debugm(N, task,


More information about the Commits mailing list