From: Willy Tarreau Date: Mon, 28 Apr 2014 20:00:46 +0000 (+0200) Subject: MINOR: http: silently support the "block" action for http-request X-Git-Tag: v1.5-dev25~60 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5bd6759a1931e416ee8f681871233312d893168b;p=thirdparty%2Fhaproxy.git MINOR: http: silently support the "block" action for http-request This one will be used to convert "block" rules into "http-request block". --- diff --git a/src/proto_http.c b/src/proto_http.c index 9632b2761b..875cedcd74 100644 --- a/src/proto_http.c +++ b/src/proto_http.c @@ -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")) {