aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/lua_cfg_transform.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-02-18 15:42:26 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-02-18 15:42:26 +0000
commit96ae0fe1867bc3c9ba5ea752bd93bd1b3632fa79 (patch)
tree6be2cb15de2d1bf82f9581f792f5f2a4e872a667 /lualib/lua_cfg_transform.lua
parent9b6ae0883bfb26e2fafd3717c1e66e948917a1fc (diff)
downloadrspamd-96ae0fe1867bc3c9ba5ea752bd93bd1b3632fa79.tar.gz
rspamd-96ae0fe1867bc3c9ba5ea752bd93bd1b3632fa79.zip
[Fix] Process orphaned `symbols` section
Diffstat (limited to 'lualib/lua_cfg_transform.lua')
-rw-r--r--lualib/lua_cfg_transform.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/lualib/lua_cfg_transform.lua b/lualib/lua_cfg_transform.lua
index 8a61dcd29..ae05eed59 100644
--- a/lualib/lua_cfg_transform.lua
+++ b/lualib/lua_cfg_transform.lua
@@ -242,6 +242,12 @@ return function(cfg)
ret = true
end
+ if cfg.symbols then
+ for k, v in metric_pairs(cfg.symbols) do
+ symbol_transform(cfg, k, v)
+ end
+ end
+
check_statistics_sanity()
if not cfg.actions then