update ip_hash to "backup" option

This commit is contained in:
Igor Sysoev 2007-08-24 15:30:35 +00:00
parent 9fdca0a117
commit 97e9336753

View file

@ -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);
}