#define PR_CAP_LISTEN (PR_CAP_FE|PR_CAP_BE)
#define PR_CAP_DEF 0x0004 /* defaults section */
#define PR_CAP_LUA 0x0008 /* internal proxy used by lua engine */
+#define PR_CAP_LB 0x0010 /* load-balancing capabilities, i.e. listen/frontend/backend proxies */
/* bits for proxy->options */
#define PR_O_REDISP 0x00000001 /* allow reconnection to dispatch in case of errors */
}
if (strcmp(args[0], "listen") == 0)
- rc = PR_CAP_LISTEN;
+ rc = PR_CAP_LISTEN | PR_CAP_LB;
else if (strcmp(args[0], "frontend") == 0)
- rc = PR_CAP_FE;
+ rc = PR_CAP_FE | PR_CAP_LB;
else if (strcmp(args[0], "backend") == 0)
- rc = PR_CAP_BE;
+ rc = PR_CAP_BE | PR_CAP_LB;
else if (strcmp(args[0], "defaults") == 0) {
/* "defaults" must first delete the last no-name defaults if any */
proxy_destroy_defaults(proxy_find_by_name("", PR_CAP_DEF, 0));