diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-02-18 15:42:26 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-02-18 15:42:26 +0000 |
commit | 96ae0fe1867bc3c9ba5ea752bd93bd1b3632fa79 (patch) | |
tree | 6be2cb15de2d1bf82f9581f792f5f2a4e872a667 /lualib/lua_cfg_transform.lua | |
parent | 9b6ae0883bfb26e2fafd3717c1e66e948917a1fc (diff) | |
download | rspamd-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.lua | 6 |
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 |