diff options
author | Ermal <eri@pfsense.org> | 2010-10-04 12:39:03 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-10-04 12:39:03 +0000 |
commit | 54b78cc1391890496332a51cdd23d456cfb99aec (patch) | |
tree | 3334152d8970b00752df376af4b6d35218283984 | |
parent | c6865c5ec250d04648f344190f7cfdf4ddb40046 (diff) | |
download | pfsense-54b78cc1391890496332a51cdd23d456cfb99aec.zip pfsense-54b78cc1391890496332a51cdd23d456cfb99aec.tar.gz |
Fix checking the status of gateways. Typos and unset variables! Spotted-by: Mark Huijgen
-rw-r--r-- | etc/inc/gwlb.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc index e8d6ba0..d8056c5 100644 --- a/etc/inc/gwlb.inc +++ b/etc/inc/gwlb.inc @@ -375,7 +375,8 @@ function return_gateway_groups_array() { $backupplan[$tier][] = $gwname; /* check if the gateway is available before adding it to the array */ - if (!empty($gateway_status[$gwname])) { + if (!empty($gateways_status[$gwname])) { + $status = $gateways_status[$gwname]; $gwdown = false; if (stristr($status['status'], "down")) { $msg = "MONITOR: {$gwname} has high latency, removing from routing group"; |