mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-21 05:06:56 +00:00
BUG/MINOR: config: Add warning for http-after-response rules in TCP mode
No warning is emitted if some http-after-response rules are configured on a TCP proxy while such warning messages are emitted for other HTTP ruleset in same condition. It is just an oversight. This patch may be backported as far as 2.2.
This commit is contained in:
parent
97b3a61449
commit
bb7abede93
@ -3083,6 +3083,12 @@ out_uri_auth_compat:
|
||||
err_code |= ERR_WARN;
|
||||
}
|
||||
|
||||
if (!LIST_ISEMPTY(&curproxy->http_after_res_rules)) {
|
||||
ha_warning("config : 'http-after-response' rules ignored for %s '%s' as they require HTTP mode.\n",
|
||||
proxy_type_str(curproxy), curproxy->id);
|
||||
err_code |= ERR_WARN;
|
||||
}
|
||||
|
||||
if (!LIST_ISEMPTY(&curproxy->redirect_rules)) {
|
||||
ha_warning("config : 'redirect' rules ignored for %s '%s' as they require HTTP mode.\n",
|
||||
proxy_type_str(curproxy), curproxy->id);
|
||||
|
Loading…
Reference in New Issue
Block a user