mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-10 09:21:35 -04:00
[MINOR] also set request time on denied requests
This commit is contained in:
parent
950609c39c
commit
47ee7ad0a4
1 changed files with 1 additions and 0 deletions
|
|
@ -4120,6 +4120,7 @@ int process_cli(struct session *t) {
|
|||
if (t->flags & SN_CLDENY) {
|
||||
/* no need to go further */
|
||||
t->logs.status = 403;
|
||||
t->logs.t_request = tv_diff(&t->logs.tv_accept, &now); /* let's log the request time */
|
||||
client_retnclose(t, t->proxy->errmsg.len403, t->proxy->errmsg.msg403);
|
||||
if (!(t->flags & SN_ERR_MASK))
|
||||
t->flags |= SN_ERR_PRXCOND;
|
||||
|
|
|
|||
Loading…
Reference in a new issue