mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-21 22:01:31 +02:00
BUG/MINOR: stats: http-request rules still don't cope with stats
Since commit 20b0de5, we also had another remaining issue : an "http-request allow" rule would prevent a stats rule from being processed.
This commit is contained in:
parent
8b80f0c9a2
commit
1a1e8072f9
@ -3063,8 +3063,8 @@ int http_handle_stats(struct session *s, struct channel *req)
|
|||||||
|
|
||||||
/* Executes the http-request rules <rules> for session <s>, proxy <px> and
|
/* Executes the http-request rules <rules> for session <s>, proxy <px> and
|
||||||
* transaction <txn>. Returns NULL if it executed all rules, or a pointer to
|
* transaction <txn>. Returns NULL if it executed all rules, or a pointer to
|
||||||
* the last rule if it had to stop before the end (auth, deny, allow). It may
|
* the last rule if it had to stop before the end (auth, deny). It may set
|
||||||
* set the TX_CLDENY on txn->flags if it encounters a deny rule.
|
* the TX_CLDENY on txn->flags if it encounters a deny rule.
|
||||||
*/
|
*/
|
||||||
static struct http_req_rule *
|
static struct http_req_rule *
|
||||||
http_check_access_rule(struct proxy *px, struct list *rules, struct session *s, struct http_txn *txn)
|
http_check_access_rule(struct proxy *px, struct list *rules, struct session *s, struct http_txn *txn)
|
||||||
@ -3090,7 +3090,7 @@ http_check_access_rule(struct proxy *px, struct list *rules, struct session *s,
|
|||||||
if (ret) {
|
if (ret) {
|
||||||
switch (rule->action) {
|
switch (rule->action) {
|
||||||
case HTTP_REQ_ACT_ALLOW:
|
case HTTP_REQ_ACT_ALLOW:
|
||||||
return rule;
|
return NULL;
|
||||||
case HTTP_REQ_ACT_DENY:
|
case HTTP_REQ_ACT_DENY:
|
||||||
txn->flags |= TX_CLDENY;
|
txn->flags |= TX_CLDENY;
|
||||||
return rule;
|
return rule;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user