diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-12-03 13:36:32 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-12-03 16:55:30 +0000 |
commit | f5e2a84b6981cc12f06c908f9af277d13e64e7e8 (patch) | |
tree | b86cc3a6ee0803e86d825240986d2b2efa553758 /src/plugins/lua/dkim_signing.lua | |
parent | 12d38f08dd70e39bc0848390d6ec4f1f003ec335 (diff) | |
download | rspamd-f5e2a84b6981cc12f06c908f9af277d13e64e7e8.tar.gz rspamd-f5e2a84b6981cc12f06c908f9af277d13e64e7e8.zip |
[Feature] Store plugins state
Diffstat (limited to 'src/plugins/lua/dkim_signing.lua')
-rw-r--r-- | src/plugins/lua/dkim_signing.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/lua/dkim_signing.lua b/src/plugins/lua/dkim_signing.lua index 341cddc94..75720df9d 100644 --- a/src/plugins/lua/dkim_signing.lua +++ b/src/plugins/lua/dkim_signing.lua @@ -142,6 +142,7 @@ for k,v in pairs(opts) do end if not (settings.use_redis or settings.path or settings.domain or settings.path_map or settings.selector_map) then rspamd_logger.infox(rspamd_config, 'mandatory parameters missing, disable dkim signing') + lutil.disable_module(N, "config") return end if settings.use_redis then @@ -149,6 +150,7 @@ if settings.use_redis then if not redis_params then rspamd_logger.errx(rspamd_config, 'no servers are specified, but module is configured to load keys from redis, disable dkim signing') + lutil.disable_module(N, "redis") return end end |