mirror of
https://github.com/haproxy/haproxy.git
synced 2026-03-23 19:03:06 -04:00
[BUG] use_backend would not correctly consider "unless"
A copy-paste typo made use_backend not correctly consider the "unless" case, depending on the previous "block" rule.
This commit is contained in:
parent
0c303eec87
commit
a8cfa34a9c
1 changed files with 1 additions and 1 deletions
|
|
@ -2004,7 +2004,7 @@ int process_cli(struct session *t)
|
|||
int ret;
|
||||
|
||||
ret = acl_exec_cond(rule->cond, cur_proxy, t, txn, ACL_DIR_REQ);
|
||||
if (cond->pol == ACL_COND_UNLESS)
|
||||
if (rule->cond->pol == ACL_COND_UNLESS)
|
||||
ret = !ret;
|
||||
|
||||
if (ret) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue