aboutsummaryrefslogtreecommitdiffstats
path: root/config/varnish64
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@gmail.com>2011-08-08 05:58:02 -0700
committerScott Ullrich <sullrich@gmail.com>2011-08-08 05:58:02 -0700
commit525abf696eb11e7b95c9fca6ab68e6dbbf822881 (patch)
treeb21d4c00a7f387b4a0a2d04f8ecd9352ec3886ab /config/varnish64
parent2df95b8d0bdca215ecd73e7e84ec2f4210faf974 (diff)
parent712c3d7d055d7fe6b81286ab490eb378a76cc2c4 (diff)
downloadpfsense-packages-525abf696eb11e7b95c9fca6ab68e6dbbf822881.tar.gz
pfsense-packages-525abf696eb11e7b95c9fca6ab68e6dbbf822881.tar.bz2
pfsense-packages-525abf696eb11e7b95c9fca6ab68e6dbbf822881.zip
Merge pull request #26 from marcelloc/patch-19
include i386 compatibility
Diffstat (limited to 'config/varnish64')
-rw-r--r--config/varnish64/varnish.inc13
1 files changed, 3 insertions, 10 deletions
diff --git a/config/varnish64/varnish.inc b/config/varnish64/varnish.inc
index f842348f..654a8bae 100644
--- a/config/varnish64/varnish.inc
+++ b/config/varnish64/varnish.inc
@@ -261,15 +261,7 @@ function get_lb_directors_config_txt() {
if($config['installedpackages']['varnishlbdirectors']['config'] != "") {
foreach($config['installedpackages']['varnishlbdirectors']['config'] as $backend) {
$director = "";
- if($backend['directortype']){
- switch($backend['directortype']){
- case "round-robin" :
- case "hash" :
- $weight=" ";
- break;
- }
-
- }
+ if($backend['directortype'] == "round-robin" ){$weight=" ";}
if($backend['row']){
foreach($backend['row'] as $be) {
if($be['weight'] && $weight != " ")
@@ -356,7 +348,8 @@ function sync_package_varnish() {
break;
}
}
- if($vcl['clientbalance']){
+ $plataform=system('uname -m');
+ if($vcl['clientbalance'] && $plataform == 'amd64'){
$vcl_recv_basic.="\t#set client balance identity\n";
switch ($vcl['clientbalance']){
case 'url':