From 3b6cfeb9a24f60d0cbfd83456124142594f3414a Mon Sep 17 00:00:00 2001 From: fendo Date: Fri, 2 Aug 2013 13:36:42 +0200 Subject: [PATCH] Fix: improved load balancing algorithm --- grpsess.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grpsess.c b/grpsess.c index f38ab1a..a4b63ab 100644 --- a/grpsess.c +++ b/grpsess.c @@ -571,7 +571,7 @@ sessionidt grp_getnextsession(groupidt g, in_addr_t ip, in_addr_t ip_src) uint8_t *ad = (uint8_t *) &ip; uint16_t ai = ad[3]; ai <<= 8; - ai &= as[3]; + ai |= as[3]; s = grp_local[g].sid_loaddist[ai]; if (!s) -- 2.20.1