diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-04-17 14:42:45 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-04-17 14:42:45 +0100 |
commit | 3cb21a049f62dff157a1f33e7bbd928d181b9ce0 (patch) | |
tree | eb65d2d725635337535fdb15914736adaaf48c23 /src/libserver/cfg_utils.c | |
parent | 2534dc76df46590151fd46c6143fc6c375b83be5 (diff) | |
download | rspamd-3cb21a049f62dff157a1f33e7bbd928d181b9ce0.tar.gz rspamd-3cb21a049f62dff157a1f33e7bbd928d181b9ce0.zip |
Move more initialization from main.c.
Diffstat (limited to 'src/libserver/cfg_utils.c')
-rw-r--r-- | src/libserver/cfg_utils.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libserver/cfg_utils.c b/src/libserver/cfg_utils.c index 510a6661a..28310da57 100644 --- a/src/libserver/cfg_utils.c +++ b/src/libserver/cfg_utils.c @@ -34,6 +34,7 @@ #include "map.h" #include "dynamic_cfg.h" #include "utlist.h" +#include "stat_api.h" #define DEFAULT_SCORE 10.0 @@ -385,6 +386,12 @@ rspamd_config_post_load (struct rspamd_config *cfg) /* Lua options */ (void)rspamd_lua_post_load_config (cfg); init_dynamic_config (cfg); + + rspamd_stat_init (rspamd_main->cfg); + rspamd_url_init (rspamd_main->cfg->tld_file); + + /* Insert classifiers symbols */ + (void)rspamd_config_insert_classify_symbols (rspamd_main->cfg); } #if 0 |