]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] RBL: Display matched IP instead of thing being matched against 949/head
authorAndrew Lewis <nerf@judo.za.org>
Tue, 13 Sep 2016 08:01:43 +0000 (10:01 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Tue, 13 Sep 2016 08:01:43 +0000 (10:01 +0200)
src/plugins/lua/rbl.lua

index 69d84d771915ab272b12f9708366f302e27a1572..c831af41a6e7f0aee023c3be572f326161e4ddf2 100644 (file)
@@ -77,14 +77,14 @@ local function rbl_cb (task)
             if type(i) == 'string' then
               if string.find(ipstr, '^' .. i .. '$') then
                 foundrc = i
-                task:insert_result(s, 1, to_resolve .. ' : ' .. foundrc)
+                task:insert_result(s, 1, to_resolve .. ' : ' .. ipstr)
                 break
               end
             elseif type(i) == 'table' then
               for _,v in pairs(i) do
                 if string.find(ipstr, '^' .. v .. '$') then
                   foundrc = v
-                  task:insert_result(s, 1, to_resolve .. ' : ' .. foundrc)
+                  task:insert_result(s, 1, to_resolve .. ' : ' .. ipstr)
                   break
                 end
               end