aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2016-09-13 10:01:43 +0200
committerAndrew Lewis <nerf@judo.za.org>2016-09-13 10:01:43 +0200
commitdfe55a5f76651f964af9de7c5e02f5aa9e892196 (patch)
treeea36bd07e1a53e95879a73369f5f0cd67e3577a2 /src
parentd886209d50ba5263645006249738d44f163efe8d (diff)
downloadrspamd-dfe55a5f76651f964af9de7c5e02f5aa9e892196.tar.gz
rspamd-dfe55a5f76651f964af9de7c5e02f5aa9e892196.zip
[Minor] RBL: Display matched IP instead of thing being matched against
Diffstat (limited to 'src')
-rw-r--r--src/plugins/lua/rbl.lua4
1 files 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