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:
Willy Tarreau 2014-04-28 22:00:46 +02:00
parent 5254259609
commit 5bd6759a19

View File

@ -8695,7 +8695,7 @@ struct http_req_rule *parse_http_req_cond(const char **args, const char *file, i
if (!strcmp(args[0], "allow")) {
rule->action = HTTP_REQ_ACT_ALLOW;
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;
cur_arg = 1;
} else if (!strcmp(args[0], "tarpit")) {