From: Andrew Lewis Date: Tue, 13 Sep 2016 08:01:43 +0000 (+0200) Subject: [Minor] RBL: Display matched IP instead of thing being matched against X-Git-Tag: 1.4.0~430^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=dfe55a5f76651f964af9de7c5e02f5aa9e892196;p=rspamd.git [Minor] RBL: Display matched IP instead of thing being matched against --- diff --git a/src/plugins/lua/rbl.lua b/src/plugins/lua/rbl.lua index 69d84d771..c831af41a 100644 --- a/src/plugins/lua/rbl.lua +++ b/src/plugins/lua/rbl.lua @@ -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