summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/inc/vslb.inc12
1 files changed, 8 insertions, 4 deletions
diff --git a/etc/inc/vslb.inc b/etc/inc/vslb.inc
index ca51d88..a9d47da 100644
--- a/etc/inc/vslb.inc
+++ b/etc/inc/vslb.inc
@@ -93,10 +93,14 @@ function slbd_configure() {
}
/* Gateway Pools */
- $a_settings['latencylow'] = "200";
- $a_settings['latencyhigh'] = "500";
- $a_settings['losslow'] = "10";
- $a_settings['losshigh'] = "20";
+ if (is_array($config['gateways']['settings'])) {
+ $a_settings = &$config['gateways']['settings'];
+ } else {
+ $a_settings['latencylow'] = "200";
+ $a_settings['latencyhigh'] = "500";
+ $a_settings['losslow'] = "10";
+ $a_settings['losshigh'] = "20";
+ }
/* kill apinger process */
if(is_process_running("apinger"))
OpenPOWER on IntegriCloud