]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Skip whitelists check for resolveip
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 28 Aug 2019 12:32:33 +0000 (13:32 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 28 Aug 2019 12:32:33 +0000 (13:32 +0100)
src/plugins/lua/rbl.lua

index 30945d49fd4414dd3de6c538039a2b19e264023e..4f6bae83fdc88be781a424fff77f0f56aa55db14 100644 (file)
@@ -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