]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Unbreak rbls parsing
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 8 Mar 2018 16:16:17 +0000 (16:16 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 8 Mar 2018 16:16:17 +0000 (16:16 +0000)
src/plugins/lua/rbl.lua

index 02c0ae7864568a448b1b14ed0651b192fcc857bd..83470f65f4f6adf6eae40a26ae9a5b0fe40069c0 100644 (file)
@@ -533,7 +533,7 @@ local id = rspamd_config:register_symbol({
 local is_monitored = {}
 for key,rbl in pairs(opts['rbls']) do
   (function()
-    if type(rbl) ~= 'string' or rbl['disabled'] then
+    if type(rbl) ~= 'table' or rbl['disabled'] then
       rspamd_logger.infox(rspamd_config, 'disable rbl "s"', key)
       return
     end