return -1;
}
- if (curpx->mode != PR_MODE_TCP && curpx->mode != PR_MODE_HTTP) {
- memprintf(err, "%s %s is not allowed because %s %s is not in TCP or HTTP mode",
- args[0], args[1], proxy_type_str(curpx), curpx->id);
- return -1;
- }
-
if (strcmp(args[1], "inspect-delay") == 0) {
if ((curpx == defpx && strlen(defpx->id) == 0) || !(curpx->cap & PR_CAP_BE)) {
memprintf(err, "%s %s is only allowed in 'backend' sections or 'defaults' section with a name",
return -1;
}
- if (curpx->mode != PR_MODE_TCP && curpx->mode != PR_MODE_HTTP) {
- memprintf(err, "%s %s is not allowed because %s %s is not in TCP or HTTP mode",
- args[0], args[1], proxy_type_str(curpx), curpx->id);
- return -1;
- }
-
if (strcmp(args[1], "inspect-delay") == 0) {
if (curpx == defpx && strlen(defpx->id) == 0) {
memprintf(err, "%s %s is not allowed in anonymous 'defaults' sections",