From: Andrew Lewis Date: Tue, 22 Nov 2016 14:58:04 +0000 (+0200) Subject: [Minor] MX check: require redis settings for registration X-Git-Tag: 1.4.1~102^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1704427a3571f34e41992df97b586132df703d2a;p=rspamd.git [Minor] MX check: require redis settings for registration --- diff --git a/src/plugins/lua/mx_check.lua b/src/plugins/lua/mx_check.lua index ca966909c..6d333350d 100644 --- a/src/plugins/lua/mx_check.lua +++ b/src/plugins/lua/mx_check.lua @@ -253,6 +253,10 @@ if not (opts and type(opts) == 'table') then end if opts then redis_params = rspamd_parse_redis_server('mx_check') + if not redis_params then + rspamd_logger.errx(rspamd_config, 'no redis servers are specified, disabling module') + return + end for k,v in pairs(opts) do settings[k] = v end