]> source.dussan.org Git - rspamd.git/commitdiff
Fix configuration of received_rbl module.
authorVsevolod Stakhov <vsevolod@rambler-co.ru>
Tue, 22 Mar 2011 15:35:48 +0000 (18:35 +0300)
committerVsevolod Stakhov <vsevolod@rambler-co.ru>
Tue, 22 Mar 2011 15:35:48 +0000 (18:35 +0300)
src/plugins/lua/received_rbl.lua

index 653b092ad993774a9d92b807a346eebe8adbcdd7..462af1f27b762473f73dacfd295c1aa5fac841fd 100644 (file)
@@ -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, ':')