]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Init urls before getting stats data
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 16 Jun 2018 17:03:52 +0000 (18:03 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 16 Jun 2018 17:03:52 +0000 (18:03 +0100)
lualib/rspamadm/mime.lua

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