diff options
author | Andrew Lewis <nerf@judo.za.org> | 2016-11-22 16:58:04 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2016-11-22 16:58:04 +0200 |
commit | 1704427a3571f34e41992df97b586132df703d2a (patch) | |
tree | d2db4dfc804869039fdaaaf127409f1ef901b70f /src/plugins | |
parent | cab851d4445a1c4e98a6e32a6629a9cf47efb289 (diff) | |
download | rspamd-1704427a3571f34e41992df97b586132df703d2a.tar.gz rspamd-1704427a3571f34e41992df97b586132df703d2a.zip |
[Minor] MX check: require redis settings for registration
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/lua/mx_check.lua | 4 |
1 files changed, 4 insertions, 0 deletions
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 |