aboutsummaryrefslogtreecommitdiffstats
path: root/config/haproxy-dev/haproxy.inc
diff options
context:
space:
mode:
Diffstat (limited to 'config/haproxy-dev/haproxy.inc')
-rw-r--r--config/haproxy-dev/haproxy.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/config/haproxy-dev/haproxy.inc b/config/haproxy-dev/haproxy.inc
index 4207a3ca..455638a1 100644
--- a/config/haproxy-dev/haproxy.inc
+++ b/config/haproxy-dev/haproxy.inc
@@ -219,8 +219,10 @@ function write_backend($fd, $name, $pool, $frontend) {
}
if($pool['checkinter'])
$checkinter = "check inter {$pool['checkinter']}";
- else
+ else if (strtolower($frontend['type']) != "tcp")
$checkinter = "check inter 1000";
+ else
+ $checkinter = "";
$a_servers = &$pool['ha_servers']['item'];
foreach($a_servers as $be) {