diff options
author | Warren Baker <warren@decoy.co.za> | 2011-05-03 10:07:47 +0200 |
---|---|---|
committer | Warren Baker <warren@decoy.co.za> | 2011-05-03 10:07:47 +0200 |
commit | 327ef8eb3244f79e1b669dca792c83d45657f7d4 (patch) | |
tree | 663a7b1d14ff3286218580e6bfbc0e9ad6a94b36 /etc/inc | |
parent | 8c218e1d0190a218686cf2b65913be3198791206 (diff) | |
download | pfsense-327ef8eb3244f79e1b669dca792c83d45657f7d4.zip pfsense-327ef8eb3244f79e1b669dca792c83d45657f7d4.tar.gz |
Use correct config variable and fix some whitespaces.
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/vslb.inc | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/etc/inc/vslb.inc b/etc/inc/vslb.inc index f984b60..953c356 100644 --- a/etc/inc/vslb.inc +++ b/etc/inc/vslb.inc @@ -233,23 +233,23 @@ function relayd_configure() { $conf .= $proto; } } - if(is_array($vs_a)) { + if(is_array($vs_a)) { for ($i = 0; isset($vs_a[$i]); $i++) { switch($vs_a[$i]['mode']) { case 'redirect_mode': { - $conf .= "redirect \"{$vs_a[$i]['name']}\" {\n"; - $conf .= " listen on {$vs_a[$i]['ipaddr']} port {$vs_a[$i]['port']}\n"; - $conf .= " forward to <{$vs_a[$i]['pool']}> port {$pools[$vs_a[$i]['pool']]['port']} {$check_a[$pools[$vs_a[$i]['pool']]['monitor']]} timeout 1000\n"; + $conf .= "redirect \"{$vs_a[$i]['name']}\" {\n"; + $conf .= " listen on {$vs_a[$i]['ipaddr']} port {$vs_a[$i]['port']}\n"; + $conf .= " forward to <{$vs_a[$i]['pool']}> port {$pools[$vs_a[$i]['pool']]['port']} {$check_a[$pools[$vs_a[$i]['pool']]['monitor']]} timeout 1000\n"; - if (isset($conf['system']['lb_use_sticky'])) - $conf .= " sticky-address\n"; + if (isset($config['system']['lb_use_sticky'])) + $conf .= " sticky-address\n"; - # sitedown MUST use the same port as the primary pool - sucks, but it's a relayd thing - if (isset($vs_a[$i]['sitedown']) && strlen($vs_a[$i]['sitedown']) > 0) - $conf .= " forward to <{$vs_a[$i]['sitedown']}> port {$pools[$vs_a[$i]['pool']]['port']} {$check_a[$pools[$vs_a[$i]['pool']]['monitor']]} timeout 1000\n"; + # sitedown MUST use the same port as the primary pool - sucks, but it's a relayd thing + if (isset($vs_a[$i]['sitedown']) && strlen($vs_a[$i]['sitedown']) > 0) + $conf .= " forward to <{$vs_a[$i]['sitedown']}> port {$pools[$vs_a[$i]['pool']]['port']} {$check_a[$pools[$vs_a[$i]['pool']]['monitor']]} timeout 1000\n"; - $conf .= "}\n"; - break; + $conf .= "}\n"; + break; } case 'relay': { $conf .= "relay \"{$vs_a[$i]['name']}\" {\n"; |