From: Alexey AL Date: Thu, 12 Feb 2015 00:35:39 +0000 (+0300) Subject: Fix rbl.lua X-Git-Tag: 0.8.2~50^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b483fe8cc71bd86d17c3180f9312cd1e64d76ad7;p=rspamd.git Fix rbl.lua --- diff --git a/src/plugins/lua/rbl.lua b/src/plugins/lua/rbl.lua index 3db397556..4ab1b622f 100644 --- a/src/plugins/lua/rbl.lua +++ b/src/plugins/lua/rbl.lua @@ -157,13 +157,11 @@ local function rbl_cb (task) end for _,rh in ipairs(havegot['received']) do if rh['real_ip'] and rh['real_ip']:is_valid() then - for k,rbl in pairs(rbls) do if (rh['real_ip']:get_version() == 6 and rbl['ipv6']) or (rh['real_ip']:get_version() == 4 and rbl['ipv4']) then task:get_resolver():resolve_a(task:get_session(), task:get_mempool(), ip_to_rbl(rh['real_ip'], rbl['rbl']), rbl_dns_cb, k) end - end end end end)()