aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-03-22 18:35:48 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-03-22 18:35:48 +0300
commit4aa3b704739e3398402fbbef1216ae588ff9be2e (patch)
treef40239ce3f51e0e53cc4dd8fa468a0994df9bb3b /src/plugins/lua
parentee9632d269fa365a66cff0da13acb28fd8908bef (diff)
downloadrspamd-4aa3b704739e3398402fbbef1216ae588ff9be2e.tar.gz
rspamd-4aa3b704739e3398402fbbef1216ae588ff9be2e.zip
Fix configuration of received_rbl module.
Diffstat (limited to 'src/plugins/lua')
-rw-r--r--src/plugins/lua/received_rbl.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/plugins/lua/received_rbl.lua b/src/plugins/lua/received_rbl.lua
index 653b092ad..462af1f27 100644
--- a/src/plugins/lua/received_rbl.lua
+++ b/src/plugins/lua/received_rbl.lua
@@ -70,7 +70,11 @@ if opts then
symbol = opts['symbol']
if opts['rbl'] then
- rbls = opts['rbl']
+ if type(opts['rbl']) == 'table' then
+ rbls = opts['rbl']
+ else
+ rbls[1] = opts['rbl']
+ end
end
for _,rbl in ipairs(rbls) do
local s, _ = string.find(rbl, ':')