From: Alexey AL Date: Thu, 12 Feb 2015 00:35:39 +0000 (+0300) Subject: Fix rbl.lua X-Git-Tag: 0.9.0~726^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0b710f2dd2c617eb9f74852824dd4e6f621caad4;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)()