return FALSE;
}
+ if (ucl_object_type (obj) != UCL_NULL) {
+ msg_info_pool_check("upstream %s is disabled by setting it to NULL",
+ ucl_object_key (obj));
+ return TRUE;
+ }
+
if (!rspamd_config_is_enabled_from_ucl (pool, obj)) {
/* Upstream is valid but disabled */
msg_info_pool_check("upstream %s is disabled",
ctx = pd->user_struct;
L = ctx->lua_state;
+ if (ucl_object_type (obj) != UCL_NULL) {
+ msg_info_pool_check("mirror %s is disabled by setting it to NULL",
+ ucl_object_key (obj));
+ return TRUE;
+ }
+
if (ucl_object_type (obj) != UCL_OBJECT) {
g_set_error (err, rspamd_proxy_quark (), 100,
"mirror option must be an object");
if (!rspamd_config_is_enabled_from_ucl (pool, obj)) {
/* Upstream is valid but disabled */
- msg_info_pool_check("upstream %s is disabled",
+ msg_info_pool_check("mirror %s is disabled",
ucl_object_lookup (obj, "name") ?
ucl_object_tostring(ucl_object_lookup (obj, "name")) :
ucl_object_key (obj));