diff options
author | Renato Botelho <garga@FreeBSD.org> | 2015-04-07 15:18:19 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2015-04-07 15:18:19 -0300 |
commit | e194ac796ff97ddde13eea2710cf07a83a1a2e58 (patch) | |
tree | 5132629e6974c6fafa07d0b72ea9e8ff6f32d11a /config | |
parent | a9d7f2034af6a28287ef85682a2fa1b6c8e0d05b (diff) | |
parent | 266dc3a5207a5642ee94dce1bb70d42ffd07c766 (diff) | |
download | pfsense-packages-e194ac796ff97ddde13eea2710cf07a83a1a2e58.tar.gz pfsense-packages-e194ac796ff97ddde13eea2710cf07a83a1a2e58.tar.bz2 pfsense-packages-e194ac796ff97ddde13eea2710cf07a83a1a2e58.zip |
Merge pull request #846 from PiBa-NL/haproxy-devel21
Diffstat (limited to 'config')
-rw-r--r-- | config/haproxy-devel/pkg/haproxy.inc | 20 | ||||
-rw-r--r-- | config/haproxy1_5/pkg/haproxy.inc | 20 |
2 files changed, 20 insertions, 20 deletions
diff --git a/config/haproxy-devel/pkg/haproxy.inc b/config/haproxy-devel/pkg/haproxy.inc index 495f59c0..135f2d4f 100644 --- a/config/haproxy-devel/pkg/haproxy.inc +++ b/config/haproxy-devel/pkg/haproxy.inc @@ -1087,16 +1087,6 @@ function haproxy_writeconf($configpath) { fwrite ($fd, "\tbind /tmp/haproxy_chroot/{$bind['name']}.socket name unixsocket accept-proxy {$ssl_info} {$advanced_bind}\n"); } - // Advanced pass thru - if($bind['advanced']) { - $advanced = explode("\n", base64_decode($bind['advanced'])); - foreach($advanced as $adv_line) { - if ($adv_line != "") { - fwrite($fd, "\t" . str_replace("\r", "", $adv_line) . "\n"); - } - } - } - // https is an alias for tcp for clarity purposes if($bind['type'] == "https") { $backend_type = "tcp"; @@ -1142,6 +1132,16 @@ function haproxy_writeconf($configpath) { fwrite ($fd, "\ttimeout client\t\t" . $bind['client_timeout'] . "\n"); + + // Advanced pass thru + if($bind['advanced']) { + $advanced = explode("\n", base64_decode($bind['advanced'])); + foreach($advanced as $adv_line) { + if ($adv_line != "") { + fwrite($fd, "\t" . str_replace("\r", "", $adv_line) . "\n"); + } + } + } // Combine the rest of the frontend configs $default_backend = ""; diff --git a/config/haproxy1_5/pkg/haproxy.inc b/config/haproxy1_5/pkg/haproxy.inc index 495f59c0..135f2d4f 100644 --- a/config/haproxy1_5/pkg/haproxy.inc +++ b/config/haproxy1_5/pkg/haproxy.inc @@ -1087,16 +1087,6 @@ function haproxy_writeconf($configpath) { fwrite ($fd, "\tbind /tmp/haproxy_chroot/{$bind['name']}.socket name unixsocket accept-proxy {$ssl_info} {$advanced_bind}\n"); } - // Advanced pass thru - if($bind['advanced']) { - $advanced = explode("\n", base64_decode($bind['advanced'])); - foreach($advanced as $adv_line) { - if ($adv_line != "") { - fwrite($fd, "\t" . str_replace("\r", "", $adv_line) . "\n"); - } - } - } - // https is an alias for tcp for clarity purposes if($bind['type'] == "https") { $backend_type = "tcp"; @@ -1142,6 +1132,16 @@ function haproxy_writeconf($configpath) { fwrite ($fd, "\ttimeout client\t\t" . $bind['client_timeout'] . "\n"); + + // Advanced pass thru + if($bind['advanced']) { + $advanced = explode("\n", base64_decode($bind['advanced'])); + foreach($advanced as $adv_line) { + if ($adv_line != "") { + fwrite($fd, "\t" . str_replace("\r", "", $adv_line) . "\n"); + } + } + } // Combine the rest of the frontend configs $default_backend = ""; |