diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-07-06 20:19:59 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-07-06 20:19:59 +0100 |
commit | e23e56dee179b2a0e2a0862e16203eea459c90e2 (patch) | |
tree | 3eaa91cae510a8543d08337697146648c7ee8aa1 /src/libserver/cfg_rcl.c | |
parent | ecdc74fd8553ccd9b9027125130a4dd83a3fc64f (diff) | |
download | rspamd-e23e56dee179b2a0e2a0862e16203eea459c90e2.tar.gz rspamd-e23e56dee179b2a0e2a0862e16203eea459c90e2.zip |
Add support for extra variables in a config.
Diffstat (limited to 'src/libserver/cfg_rcl.c')
-rw-r--r-- | src/libserver/cfg_rcl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libserver/cfg_rcl.c b/src/libserver/cfg_rcl.c index fc8ada749..26b47442a 100644 --- a/src/libserver/cfg_rcl.c +++ b/src/libserver/cfg_rcl.c @@ -2254,7 +2254,7 @@ rspamd_rcl_register_worker_parser (struct rspamd_config *cfg, gint type, gboolean rspamd_config_read (struct rspamd_config *cfg, const gchar *filename, const gchar *convert_to, rspamd_rcl_section_fin_t logger_fin, - gpointer logger_ud) + gpointer logger_ud, GHashTable *vars) { struct stat st; gint fd; @@ -2282,7 +2282,7 @@ rspamd_config_read (struct rspamd_config *cfg, const gchar *filename, close (fd); parser = ucl_parser_new (0); - rspamd_ucl_add_conf_variables (parser); + rspamd_ucl_add_conf_variables (parser, vars); rspamd_ucl_add_conf_macros (parser, cfg); if (!ucl_parser_add_chunk (parser, data, st.st_size)) { msg_err ("ucl parser error: %s", ucl_parser_get_error (parser)); |