]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Process orphaned `symbols` section
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 18 Feb 2019 15:42:26 +0000 (15:42 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 18 Feb 2019 15:42:26 +0000 (15:42 +0000)
lualib/lua_cfg_transform.lua

index 8a61dcd293ccf8f6b97d454e0eaf4b9b496b6165..ae05eed592b74e6982645a51defd6fe34cf33f61 100644 (file)
@@ -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