diff options
author | Jim P <jim@pingle.org> | 2013-03-04 13:20:30 -0800 |
---|---|---|
committer | Jim P <jim@pingle.org> | 2013-03-04 13:20:30 -0800 |
commit | 2a52debb5151f67f4597754839864f571b71412e (patch) | |
tree | a45a682d806a43ecc969687e026868b95ddc48a9 /config/haproxy-devel/haproxy.inc | |
parent | d623da86b2d6e4cbf45b50589d283d609ef59290 (diff) | |
parent | b07c1bde3a5179b90b2e4aecdf6d2a0d08bb159e (diff) | |
download | pfsense-packages-2a52debb5151f67f4597754839864f571b71412e.tar.gz pfsense-packages-2a52debb5151f67f4597754839864f571b71412e.tar.bz2 pfsense-packages-2a52debb5151f67f4597754839864f571b71412e.zip |
Merge pull request #398 from hoerup/master
haproxy-devel: add various missing elements
Diffstat (limited to 'config/haproxy-devel/haproxy.inc')
-rw-r--r-- | config/haproxy-devel/haproxy.inc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/config/haproxy-devel/haproxy.inc b/config/haproxy-devel/haproxy.inc index 05264c87..559788c7 100644 --- a/config/haproxy-devel/haproxy.inc +++ b/config/haproxy-devel/haproxy.inc @@ -377,6 +377,16 @@ function write_backend($fd, $name, $pool, $frontend) { $uri = "/"; fwrite ($fd, "\toption\t\t\t{$httpchk} HEAD " . $uri . " HTTP/1.0\n"); + if ($pool['advanced_backend']) { + $adv_be = explode("\n", base64_decode($pool['advanced_backend'])); + foreach($adv_be as $adv_line) { + $adv_line = trim($adv_line); + if ($adv_line != "") { + fwrite($fd, "\t" . $adv_line . "\n"); + } + } + } + if($pool['cookie'] && strtolower($frontend['type']) == "http") $cookie = " cookie {$pool['cookie']} "; else |