mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-11-29 06:40:59 +01:00
MINOR: http: silently support the "block" action for http-request
This one will be used to convert "block" rules into "http-request block".
This commit is contained in:
parent
5254259609
commit
5bd6759a19
@ -8695,7 +8695,7 @@ struct http_req_rule *parse_http_req_cond(const char **args, const char *file, i
|
|||||||
if (!strcmp(args[0], "allow")) {
|
if (!strcmp(args[0], "allow")) {
|
||||||
rule->action = HTTP_REQ_ACT_ALLOW;
|
rule->action = HTTP_REQ_ACT_ALLOW;
|
||||||
cur_arg = 1;
|
cur_arg = 1;
|
||||||
} else if (!strcmp(args[0], "deny")) {
|
} else if (!strcmp(args[0], "deny") || !strcmp(args[0], "block")) {
|
||||||
rule->action = HTTP_REQ_ACT_DENY;
|
rule->action = HTTP_REQ_ACT_DENY;
|
||||||
cur_arg = 1;
|
cur_arg = 1;
|
||||||
} else if (!strcmp(args[0], "tarpit")) {
|
} else if (!strcmp(args[0], "tarpit")) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user