projects
/
haproxy-3.0.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c90d7dc
)
Revert "MINOR: cfgparse-listen: "http-send-name-header" requires TCP or HTTP mode"
author
Aurelien DARRAGON
<adarragon@haproxy.com>
Fri, 17 Nov 2023 17:02:03 +0000
(18:02 +0100)
committer
Willy Tarreau
<w@1wt.eu>
Sat, 18 Nov 2023 10:16:21 +0000
(11:16 +0100)
This reverts commit
d354947365bbbafe3f6675fec0bea8617259842a
since we
cannot perform the test during parsing as the proxy mode is not yet
known.
src/cfgparse-listen.c
patch
|
blob
|
history
diff --git
a/src/cfgparse-listen.c
b/src/cfgparse-listen.c
index
8981ef2
..
8508851
100644
(file)
--- a/
src/cfgparse-listen.c
+++ b/
src/cfgparse-listen.c
@@
-1322,13
+1322,6
@@
int cfg_parse_listen(const char *file, int linenum, char **args, int kwm)
if (warnifnotcap(curproxy, PR_CAP_BE, file, linenum, args[0], NULL))
err_code |= ERR_WARN;
- 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 (!*args[1]) {
ha_alert("parsing [%s:%d] : '%s' requires a header string.\n",
file, linenum, args[0]);