mirror of
https://github.com/nginx/nginx.git
synced 2026-10-22 20:11:17 +00:00
update ip_hash to "backup" option
This commit is contained in:
parent
9fdca0a117
commit
97e9336753
1 changed files with 1 additions and 1 deletions
|
|
@ -140,7 +140,7 @@ ngx_http_upstream_get_ip_hash_peer(ngx_peer_connection_t *pc, void *data)
|
|||
|
||||
/* TODO: cached */
|
||||
|
||||
if (iphp->tries > 20 || iphp->rrp.peers->number == 1) {
|
||||
if (iphp->tries > 20 || iphp->rrp.peers->single) {
|
||||
return iphp->get_rr_peer(pc, &iphp->rrp);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue