diff options
author | eneq123 <you@example.com> | 2014-05-07 15:43:43 +0400 |
---|---|---|
committer | eneq123 <you@example.com> | 2014-05-07 15:43:43 +0400 |
commit | 6ec0f7ee2a708df13863c938c1918a62c6f3ebb0 (patch) | |
tree | 2b9f4f6b683868babf2583b866009a04e995002b /src | |
parent | b864da214b9ca8da5c83e1e3ddf88227920ea5b5 (diff) | |
download | rspamd-6ec0f7ee2a708df13863c938c1918a62c6f3ebb0.tar.gz rspamd-6ec0f7ee2a708df13863c938c1918a62c6f3ebb0.zip |
DNSWL support (via RBL) added
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 bf043e19e..da52c0fba 100644 --- a/src/plugins/lua/rbl.lua +++ b/src/plugins/lua/rbl.lua @@ -25,14 +25,14 @@ local function rbl_cb (task) local foundrc = false for s,i in pairs(thisrbl['returncodes']) do if type(i) == 'string' then - if i == ipstr then + if (string.find(ipstr, i)) then foundrc = true task:insert_result(s, 1) break end elseif type(i) == 'table' then for _,v in pairs(i) do - if v == ipstr then + if (string.find(ipstr, v)) then foundrc = true task:insert_result(s, 1) break |