diff --git a/src/edu/tomr/loadbalancer/LoadBalancer.java b/src/edu/tomr/loadbalancer/LoadBalancer.java index ca83640..8fc63f0 100644 --- a/src/edu/tomr/loadbalancer/LoadBalancer.java +++ b/src/edu/tomr/loadbalancer/LoadBalancer.java @@ -82,7 +82,7 @@ private static List generateNeighborList(int i, List iPAddresses neighbors.add(iPAddresses.get(0)); } else{ - neighbors.add(iPAddresses.get(i)); + neighbors.add(iPAddresses.get(i+1)); } return neighbors;