}
free(fqdn);
- if (!(curproxy->cap & PR_CAP_LB)) {
- /* No need to wait for effective proxy mode, it is already known:
- * Only general purpose user-declared proxies ("listen", "frontend", "backend")
- * offer the possibility to configure the mode of the proxy. Hopefully for us,
- * they have the PR_CAP_LB set.
- */
- return _srv_check_proxy_mode(newsrv, 0);
- }
return 0;
out:
}
#endif
+ if (!(srv->proxy->cap & PR_CAP_LB)) {
+ /* No need to wait for effective proxy mode, it is already known:
+ * Only general purpose user-declared proxies ("listen", "frontend", "backend")
+ * offer the possibility to configure the mode of the proxy. Hopefully for us,
+ * they have the PR_CAP_LB set.
+ */
+ return _srv_check_proxy_mode(srv, 0);
+ }
+
srv_lb_commit_status(srv);
return 0;