diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-12-22 15:11:40 -0500 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-12-22 15:11:57 -0500 |
commit | 86ede4fa40adc1ab0d502d74f5dbb7db8f04e273 (patch) | |
tree | 2225d73f078f486e76025caf18c67016ffa32b99 /config/haproxy/haproxy.inc | |
parent | 60145048a3f9fc1aaf983a9bec4637896763298e (diff) | |
download | pfsense-packages-86ede4fa40adc1ab0d502d74f5dbb7db8f04e273.tar.gz pfsense-packages-86ede4fa40adc1ab0d502d74f5dbb7db8f04e273.tar.bz2 pfsense-packages-86ede4fa40adc1ab0d502d74f5dbb7db8f04e273.zip |
Adding advanced pass thru box for server entries
Diffstat (limited to 'config/haproxy/haproxy.inc')
-rw-r--r-- | config/haproxy/haproxy.inc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/config/haproxy/haproxy.inc b/config/haproxy/haproxy.inc index 6bb3242b..f8b5efbf 100644 --- a/config/haproxy/haproxy.inc +++ b/config/haproxy/haproxy.inc @@ -227,8 +227,12 @@ function haproxy_configure() { } else { $server_ports[] = $server['port']; } + if($server['advanced']) + $advanced_txt = " " . $server['advanced']; + else + $advanced_txt = ""; foreach($server_ports as $pport) - fwrite ($fd, "\tserver\t\t\t" . $server['name'] . " " . $server['address'].":" . $pport . " $cookie " . " check inter 1000 weight " . $server['weight'] . "\n"); + fwrite ($fd, "\tserver\t\t\t" . $server['name'] . " " . $server['address'].":" . $pport . " $cookie " . " check inter 1000 weight " . $server['weight'] . "{$advanced_txt}\n"); } } } |