mirror of
https://github.com/nginx/nginx.git
synced 2024-12-20 06:03:31 -06:00
Limit req: removed check for unknown limit_req_zone.
With 48b3d5ddfb03, it's possible to specify limit_req_zone after limit_req.
This commit is contained in:
parent
06ff117986
commit
1ff5515e70
@ -919,13 +919,6 @@ ngx_http_limit_req(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
|
|||||||
return NGX_CONF_ERROR;
|
return NGX_CONF_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (shm_zone->data == NULL) {
|
|
||||||
ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
|
|
||||||
"unknown limit_req_zone \"%V\"",
|
|
||||||
&shm_zone->shm.name);
|
|
||||||
return NGX_CONF_ERROR;
|
|
||||||
}
|
|
||||||
|
|
||||||
limits = lrcf->limits.elts;
|
limits = lrcf->limits.elts;
|
||||||
|
|
||||||
if (limits == NULL) {
|
if (limits == NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user