From 1704427a3571f34e41992df97b586132df703d2a Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Tue, 22 Nov 2016 16:58:04 +0200 Subject: [PATCH] [Minor] MX check: require redis settings for registration --- src/plugins/lua/mx_check.lua | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.39.5