From: Vsevolod Stakhov Date: Tue, 22 Mar 2011 15:35:48 +0000 (+0300) Subject: Fix configuration of received_rbl module. X-Git-Tag: 0.3.10~5 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4aa3b704739e3398402fbbef1216ae588ff9be2e;p=rspamd.git Fix configuration of received_rbl module. --- 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, ':')