goto out;
}
- if (curproxy->mode != PR_MODE_TCP && curproxy->mode != PR_MODE_HTTP) {
- ha_alert("parsing [%s:%d] : 'stick-table' requires TCP or HTTP mode.\n",
- file, linenum);
- err_code |= ERR_ALERT | ERR_FATAL;
- goto out;
- }
-
other = stktable_find_by_name(curproxy->id);
if (other) {
ha_alert("parsing [%s:%d] : stick-table name '%s' conflicts with table declared in %s '%s' at %s:%d.\n",
goto out;
}
- if (curproxy->mode != PR_MODE_TCP && curproxy->mode != PR_MODE_HTTP) {
- ha_alert("parsing [%s:%d] : '%s' requires TCP or HTTP mode.\n",
- file, linenum, args[0]);
- err_code |= ERR_ALERT | ERR_FATAL;
- goto out;
- }
-
if (warnifnotcap(curproxy, PR_CAP_BE, file, linenum, args[0], NULL)) {
err_code |= ERR_WARN;
goto out;