diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-09-13 13:26:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-13 13:26:06 +0100 |
commit | 107fe5f0f50e5192485cb5ffbf042884e526a4e8 (patch) | |
tree | 899f121d9410dc5096a4b378285aee23836fa906 /src/plugins | |
parent | 84047bdf579f8e7d52b9347af38ab822441b3622 (diff) | |
parent | dfe55a5f76651f964af9de7c5e02f5aa9e892196 (diff) | |
download | rspamd-107fe5f0f50e5192485cb5ffbf042884e526a4e8.tar.gz rspamd-107fe5f0f50e5192485cb5ffbf042884e526a4e8.zip |
Merge pull request #949 from fatalbanana/rbl
[Minor] RBL: Display matched IP instead of thing being matched against
Diffstat (limited to 'src/plugins')
-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 |