aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/dkim_check.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-10-02 12:55:55 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-10-02 12:55:55 +0100
commit4c9f6b21186be5c87785d5f6c91fb26cb8300b5b (patch)
tree74802fea670606876175e8bccef2d41a4986bc65 /src/plugins/dkim_check.c
parent0b7bbd9a1df25d3cf93173dc0f853d1863930ae8 (diff)
downloadrspamd-4c9f6b21186be5c87785d5f6c91fb26cb8300b5b.tar.gz
rspamd-4c9f6b21186be5c87785d5f6c91fb26cb8300b5b.zip
[Minor] Unify check_auth/check_local options
Diffstat (limited to 'src/plugins/dkim_check.c')
-rw-r--r--src/plugins/dkim_check.c19
1 files changed, 15 insertions, 4 deletions
diff --git a/src/plugins/dkim_check.c b/src/plugins/dkim_check.c
index 67aa8eb8e..f728fb5ec 100644
--- a/src/plugins/dkim_check.c
+++ b/src/plugins/dkim_check.c
@@ -320,15 +320,26 @@ dkim_module_config (struct rspamd_config *cfg)
lua_pop (cfg->lua_state, 1); /* Remove global function */
dkim_module_ctx->whitelist_ip = NULL;
- if ((value =
- rspamd_config_get_module_opt (cfg, "dkim", "check_local")) != NULL) {
+ value = rspamd_config_get_module_opt (cfg, "dkim", "check_local");
+
+ if (value == NULL) {
+ rspamd_config_get_module_opt (cfg, "options", "check_local");
+ }
+
+ if (value != NULL) {
dkim_module_ctx->check_local = ucl_object_toboolean (value);
}
else {
dkim_module_ctx->check_local = FALSE;
}
- if ((value =
- rspamd_config_get_module_opt (cfg, "dkim", "check_authed")) != NULL) {
+
+ value = rspamd_config_get_module_opt (cfg, "dkim", "check_authed");
+
+ if (value == NULL) {
+ rspamd_config_get_module_opt (cfg, "options", "check_authed");
+ }
+
+ if (value != NULL) {
dkim_module_ctx->check_authed = ucl_object_toboolean (value);
}
else {