diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-12-28 20:39:43 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-12-28 20:40:06 +0000 |
commit | 00c154271407b00de368dfc91e6d1cb857a0d712 (patch) | |
tree | 82f5b4aa15999b4a5dfd11380796654601650f02 /src | |
parent | 515d76b75018ab70d4f3412e1d9385e591b5aaa9 (diff) | |
download | rspamd-00c154271407b00de368dfc91e6d1cb857a0d712.tar.gz rspamd-00c154271407b00de368dfc91e6d1cb857a0d712.zip |
[Fix] Try to move setings initialisation to a later stage
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/lua/settings.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/lua/settings.lua b/src/plugins/lua/settings.lua index f9e3e2524..8dfd91c10 100644 --- a/src/plugins/lua/settings.lua +++ b/src/plugins/lua/settings.lua @@ -1180,7 +1180,9 @@ if set_section and set_section[1] and type(set_section[1]) == "string" then end elseif set_section and type(set_section) == "table" then settings_map_pool = rspamd_mempool.create() - process_settings_table(set_section, true, settings_map_pool) + rspamd_config:add_post_init(function () + process_settings_table(set_section, true, settings_map_pool) + end) end rspamd_config:add_config_unload(function() |