From dfe55a5f76651f964af9de7c5e02f5aa9e892196 Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Tue, 13 Sep 2016 10:01:43 +0200 Subject: [PATCH] [Minor] RBL: Display matched IP instead of thing being matched against --- src/plugins/lua/rbl.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5