commit 638dfe7: [Minor] Skip whitelists check for resolveip

Vsevolod Stakhov vsevolod at highsecure.ru
Wed Aug 28 12:35:04 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-08-28 13:32:33 +0100
URL: https://github.com/rspamd/rspamd/commit/638dfe7e1a7b75c2d0c7e06cff728595512d3c7a (HEAD -> master)

[Minor] Skip whitelists check for resolveip

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

diff --git a/src/plugins/lua/rbl.lua b/src/plugins/lua/rbl.lua
index 30945d49f..4f6bae83f 100644
--- a/src/plugins/lua/rbl.lua
+++ b/src/plugins/lua/rbl.lua
@@ -291,7 +291,7 @@ local function gen_rbl_callback(rule)
       req_str = ip_to_rbl(req)
     end
 
-    if is_whitelisted(task, req, req_str, whitelist, what) then
+    if whitelist and is_whitelisted(task, req, req_str, whitelist, what) then
       return
     end
 


More information about the Commits mailing list