]> source.dussan.org Git - rspamd.git/commitdiff
Fix rbl.lua 150/head
authorAlexey AL <AlexeySa@users.noreply.github.com>
Thu, 12 Feb 2015 00:35:39 +0000 (03:35 +0300)
committerAlexey AL <AlexeySa@users.noreply.github.com>
Thu, 12 Feb 2015 00:35:39 +0000 (03:35 +0300)
src/plugins/lua/rbl.lua

index 3db3975568fe637826cbde09321a8367ba555d5e..4ab1b622f6c41ba439ba3441c65fd682761b6a91 100644 (file)
@@ -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)()