commit 1e294eb: [Minor] Set default hs_cache_dir
Vsevolod Stakhov
vsevolod at rspamd.com
Mon May 2 19:21:04 UTC 2022
Author: Vsevolod Stakhov
Date: 2022-05-02 20:12:27 +0100
URL: https://github.com/rspamd/rspamd/commit/1e294ebb7bfcb43e3cecc89f6281366cd191b59d
[Minor] Set default hs_cache_dir
---
src/libserver/cfg_utils.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/libserver/cfg_utils.c b/src/libserver/cfg_utils.c
index e2dfd1d1b..c9fa31d21 100644
--- a/src/libserver/cfg_utils.c
+++ b/src/libserver/cfg_utils.c
@@ -249,6 +249,9 @@ rspamd_config_new (enum rspamd_config_init_flags flags)
cfg->lua_gc_step = DEFAULT_LUA_GC_STEP;
cfg->full_gc_iters = DEFAULT_GC_MAXITERS;
+ /* Default hyperscan cache */
+ cfg->hs_cache_dir = RSPAMD_DBDIR "/";
+
if (!(flags & RSPAMD_CONFIG_INIT_SKIP_LUA)) {
cfg->lua_state = rspamd_lua_init (flags & RSPAMD_CONFIG_INIT_WIPE_LUA_MEM);
cfg->own_lua_state = TRUE;
More information about the Commits
mailing list