aboutsummaryrefslogtreecommitdiffstats
path: root/config/varnish64/varnish.inc
diff options
context:
space:
mode:
Diffstat (limited to 'config/varnish64/varnish.inc')
-rw-r--r--config/varnish64/varnish.inc8
1 files changed, 2 insertions, 6 deletions
diff --git a/config/varnish64/varnish.inc b/config/varnish64/varnish.inc
index 2b4a6f6e..61704fb4 100644
--- a/config/varnish64/varnish.inc
+++ b/config/varnish64/varnish.inc
@@ -216,7 +216,7 @@ function get_backend_config_txt() {
if($backend['port'])
$connect_timeout = $backend['port'] . "s";
else
- $connect_timeout = "80";
+ $connect_timeout = "80s";
if($backend['first_byte_timeout'])
$first_byte_timeout = $backend['first_byte_timeout'] . "s";
else
@@ -475,11 +475,7 @@ function varnish_sync_on_changes() {
$previous_ip = "";
$x=0;
$sh = $config['installedpackages']['varnishsync']['config'][0];
- for($x=1; $x<isset($sh[$x]); $x++) {
- if($x > 1)
- $counter = $x;
- else
- $counter = "";
+ for($x=1; $x<7); $x++) {
$sync_to_ip = "";
$password = "";
if($sh['ipaddress' . $counter]) {