aboutsummaryrefslogtreecommitdiffstats
path: root/src/rspamd_proxy.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2022-03-30 21:08:00 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2022-03-30 21:08:00 +0100
commit987f56f4e2d9e7785f69a5a9068435881c80550d (patch)
tree0767b1dff013036c3a9f7c42d66c236cab6b5540 /src/rspamd_proxy.c
parentd231f3d467434e412160fa2d45dad8377a4f780e (diff)
downloadrspamd-987f56f4e2d9e7785f69a5a9068435881c80550d.tar.gz
rspamd-987f56f4e2d9e7785f69a5a9068435881c80550d.zip
[Minor] Well, I've said `mirrors`!
Diffstat (limited to 'src/rspamd_proxy.c')
-rw-r--r--src/rspamd_proxy.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/rspamd_proxy.c b/src/rspamd_proxy.c
index bdf3e1a14..d875c0efe 100644
--- a/src/rspamd_proxy.c
+++ b/src/rspamd_proxy.c
@@ -506,6 +506,15 @@ rspamd_proxy_parse_mirror (rspamd_mempool_t *pool,
return FALSE;
}
+ if (!rspamd_config_is_enabled_from_ucl (pool, obj)) {
+ /* Upstream is valid but disabled */
+ msg_info_pool_check("upstream %s is disabled",
+ ucl_object_lookup (obj, "name") ?
+ ucl_object_tostring(ucl_object_lookup (obj, "name")) :
+ ucl_object_key (obj));
+ return TRUE;
+ }
+
up = rspamd_mempool_alloc0 (pool, sizeof (*up));
elt = ucl_object_lookup (obj, "name");