mirror of
https://github.com/nginx/nginx.git
synced 2026-06-07 15:52:28 -04:00
Upstream keepalive: fixed parameter parsing.
This commit is contained in:
parent
6bb27a6312
commit
d787755d50
1 changed files with 1 additions and 1 deletions
|
|
@ -607,7 +607,7 @@ ngx_http_upstream_keepalive(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
|
|||
kcf->max_cached = n;
|
||||
|
||||
if (cf->args->nelts == 3) {
|
||||
if (ngx_strncmp(value[2].data, "local", 5) == 0) {
|
||||
if (ngx_strcmp(value[2].data, "local") == 0) {
|
||||
kcf->local = 1;
|
||||
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue