mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-19 04:07:04 +00:00
[MINOR] also set request time on denied requests
This commit is contained in:
parent
950609c39c
commit
47ee7ad0a4
@ -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 New Issue
Block a user