diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-04-14 22:06:40 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-04-14 22:06:40 +0000 |
commit | 2de00bff81df626a7909626d4753cf2fd773ea95 (patch) | |
tree | c2d9b1c10edda16e6b6b243c401417750857bb38 /etc | |
parent | 43ea32f930731661679af09df1208393a2278974 (diff) | |
download | pfsense-2de00bff81df626a7909626d4753cf2fd773ea95.zip pfsense-2de00bff81df626a7909626d4753cf2fd773ea95.tar.gz |
Commit updated file for inspection
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/vslb.inc | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/etc/inc/vslb.inc b/etc/inc/vslb.inc index 0a1a6ce..aa7cc10 100644 --- a/etc/inc/vslb.inc +++ b/etc/inc/vslb.inc @@ -95,12 +95,15 @@ function slbd_configure() { /* pool name */ $slbdconf .= "\t:poolname={$lbpool['name']}:\\\n"; - /* virtual IP */ - $slbdconf .= "\t:vip={$lbpool['ipaddr']}:\\\n"; - /* fallback port */ - $slbdconf .= "\t:sitedown-port={$lbpool['port']}:\\\n"; - /* setup ping status */ - $slbdconf .= "\t:ping={$lbpool['monitorip']}:\\\n"; + + /* enumerate servers and install ping items */ + foreach($lbpool['servers'] as $server) { + $server_split = split("|", $server); + $server_ip = $server_split[0]; + $server_monitor_ip = $server_split[1]; + /* setup ping status */ + $slbdconf .= "\t:ping={$lbpool['$server_monitor_ip']}:\\\n"; + } $should_start = 1; } |