aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/rspamadm/mime.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-06-16 18:03:52 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-06-16 18:03:52 +0100
commit92ceec4b7c435d1c48765a560748af3d21713d75 (patch)
treea00cca09c4c3be11eab1795f47fe0073415725e7 /lualib/rspamadm/mime.lua
parent28926e761dc2568ee6349bf5f87c49ccedcf0672 (diff)
downloadrspamd-92ceec4b7c435d1c48765a560748af3d21713d75.tar.gz
rspamd-92ceec4b7c435d1c48765a560748af3d21713d75.zip
[Minor] Init urls before getting stats data
Diffstat (limited to 'lualib/rspamadm/mime.lua')
-rw-r--r--lualib/rspamadm/mime.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/lualib/rspamadm/mime.lua b/lualib/rspamadm/mime.lua
index e1cf6f801..8caea60ed 100644
--- a/lualib/rspamadm/mime.lua
+++ b/lualib/rspamadm/mime.lua
@@ -159,6 +159,8 @@ local function extract_handler(opts)
end
local function stat_handler(opts)
+ load_config(opts)
+ rspamd_url.init(rspamd_config:get_tld_path())
local task = load_task(opts)
if opts.meta then