diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-02-15 13:02:54 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-15 13:02:54 +0000 |
commit | bd9708cf5a156cc292263058e8f3cdbaf4ef3a68 (patch) | |
tree | 68527d3875669614e609a35f00b59e8a7a5b415e /rules | |
parent | f89cb1d6acbdfde6aacf9878eacb3faf6a22a1d3 (diff) | |
parent | 817fcffcd6f244bbb43fe4efab4dc497d83610a7 (diff) | |
download | rspamd-bd9708cf5a156cc292263058e8f3cdbaf4ef3a68.tar.gz rspamd-bd9708cf5a156cc292263058e8f3cdbaf4ef3a68.zip |
Merge pull request #4393 from dpetrov67/fix-global-lua-maps-in-settings
Fixes to support global lua maps in user settings
Diffstat (limited to 'rules')
-rw-r--r-- | rules/rspamd.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rules/rspamd.lua b/rules/rspamd.lua index 98fc5e09e..5d93dec00 100644 --- a/rules/rspamd.lua +++ b/rules/rspamd.lua @@ -57,7 +57,7 @@ local rmaps = rspamd_config:get_all_opt("lua_maps") if rmaps and type(rmaps) == 'table' then local rspamd_logger = require "rspamd_logger" for k,v in pairs(rmaps) do - local status,map_or_err = pcall(rspamd_config:add_map(v)) + local status,map_or_err = pcall(function () return rspamd_config:add_map(v) end) if not status then rspamd_logger.errx(rspamd_config, "cannot add map %s: %s", k, map_or_err) |