From 9bfa3d47c2c62252a755a43f32ff0e9c23092c80 Mon Sep 17 00:00:00 2001 From: Ermal Date: Fri, 30 Apr 2010 14:50:05 +0000 Subject: Actually minimum weight is 1. --- etc/inc/gwlb.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc') diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc index 4156afc..7a6647f 100644 --- a/etc/inc/gwlb.inc +++ b/etc/inc/gwlb.inc @@ -417,7 +417,7 @@ function return_gateway_groups_array() { if (($int <> "") && is_ipaddr($gatewayip)) { $gateway_groups_array[$group['name']][$tiernr]['int'] = "$int"; $gateway_groups_array[$group['name']][$tiernr]['gwip'] = "$gatewayip"; - $gateway_groups_array[$group['name']][$tiernr]['weight'] = isset($gateway['weight']) ? $gateway['weight'] : 0; + $gateway_groups_array[$group['name']][$tiernr]['weight'] = isset($gateway['weight']) ? $gateway['weight'] : 1; } } /* we should have the 1st available tier now, exit stage left */ -- cgit v1.1