diff options
author | Andrew Lewis <nerf@judo.za.org> | 2016-09-13 10:01:43 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2016-09-13 10:01:43 +0200 |
commit | dfe55a5f76651f964af9de7c5e02f5aa9e892196 (patch) | |
tree | ea36bd07e1a53e95879a73369f5f0cd67e3577a2 /src | |
parent | d886209d50ba5263645006249738d44f163efe8d (diff) | |
download | rspamd-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.lua | 4 |
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 |