diff options
Diffstat (limited to 'src/rspamd_proxy.c')
-rw-r--r-- | src/rspamd_proxy.c | 9 |
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"); |