diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-06-12 15:13:03 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-06-12 15:13:03 +0100 |
commit | cdc100b748c784d1c8e55aee647dfed53b6df893 (patch) | |
tree | f718c29f9d57fd07e365536c76175b01020d1aec /src/plugins/lua/dynamic_conf.lua | |
parent | 2ca160e852d55eb549f6f78ca7e09cab2b13a0e6 (diff) | |
download | rspamd-cdc100b748c784d1c8e55aee647dfed53b6df893.tar.gz rspamd-cdc100b748c784d1c8e55aee647dfed53b6df893.zip |
[Fix] Fix dynamic settings application
Issue: #769
Closes: #769
Diffstat (limited to 'src/plugins/lua/dynamic_conf.lua')
-rw-r--r-- | src/plugins/lua/dynamic_conf.lua | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/src/plugins/lua/dynamic_conf.lua b/src/plugins/lua/dynamic_conf.lua index 29f63e90c..ffe1f7e9c 100644 --- a/src/plugins/lua/dynamic_conf.lua +++ b/src/plugins/lua/dynamic_conf.lua @@ -319,10 +319,15 @@ local function add_dynamic_action(_, act, score) return add end -if redis_params then - rspamd_plugins["dynamic_conf"] = { - add_symbol = add_dynamic_symbol, - add_action = add_dynamic_action, - } - lua_util.disable_module(N, "redis") -end +if section then + if redis_params then + rspamd_plugins["dynamic_conf"] = { + add_symbol = add_dynamic_symbol, + add_action = add_dynamic_action, + } + else + lua_util.disable_module(N, "redis") + end +else + lua_util.disable_module(N, "config") +end
\ No newline at end of file |