#endif
+#ifdef ENABLE_MANAGEMENT
static bool
management_callback_remote_cmd (void *arg, const char **p)
{
gc_free (&gc);
return ret;
}
+#endif /* ENABLE_MANAGEMENT */
/*
* Initialize and possibly randomize connection list.
ce_defined = false;
c->options.ce = *ce;
-
+#ifdef ENABLE_MANAGEMENT
if (ce_defined && management && management_query_remote_enabled(management))
{
/* allow management interface to override connection entry details */
if (IS_SIG (c))
break;
} else
+#endif
if (remote_ip_hint)
c->options.ce.remote = remote_ip_hint;
#if HTTP_PROXY_FALLBACK
cb.http_proxy_fallback_cmd = management_callback_http_proxy_fallback_cmd;
#endif
+#ifdef ENABLE_MANAGEMENT
cb.remote_cmd = management_callback_remote_cmd;
+#endif
management_set_callback (management, &cb);
}
#endif