commit 4f21ecb: [Minor] Allow 'upstreams' alias...
Vsevolod Stakhov
vsevolod at highsecure.ru
Fri Nov 1 14:56:06 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-11-01 14:53:20 +0000
URL: https://github.com/rspamd/rspamd/commit/4f21ecbd4a343aa79b9184ab3a04f663268de6a9 (HEAD -> master)
[Minor] Allow 'upstreams' alias...
---
src/libserver/cfg_rcl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libserver/cfg_rcl.c b/src/libserver/cfg_rcl.c
index bc2d50bb2..e55076894 100644
--- a/src/libserver/cfg_rcl.c
+++ b/src/libserver/cfg_rcl.c
@@ -279,7 +279,7 @@ rspamd_rcl_options_handler (rspamd_mempool_t *pool, const ucl_object_t *obj,
HASH_FIND_STR (section->subsections, "upstream", upstream_section);
- upstream = ucl_object_lookup (obj, "upstream");
+ upstream = ucl_object_lookup_any (obj, "upstream", "upstreams", NULL);
if (upstream_section != NULL && upstream != NULL) {
if (!rspamd_rcl_section_parse_defaults (cfg,
upstream_section, cfg->cfg_pool,
More information about the Commits
mailing list