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: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F949%2Fhead;p=thirdparty%2Frspamd.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 69d84d7719..c831af41a6 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