diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2010-03-10 19:08:12 -0500 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2010-03-10 19:08:12 -0500 |
commit | f595d4aed4eed265528022d52d46011d3d6d649b (patch) | |
tree | e481ed66bdad315d5fe1242a429b495d4d710dbf | |
parent | b2442bfadf7ff1791922e7d977fedc4d0843242c (diff) | |
download | pfsense-f595d4aed4eed265528022d52d46011d3d6d649b.zip pfsense-f595d4aed4eed265528022d52d46011d3d6d649b.tar.gz |
Allow overriding latencylow, latencyhigh, losslow and losshigh by seting config['gateways']['settings'] which is also available in 2.0
-rw-r--r-- | etc/inc/vslb.inc | 12 |
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")) |