diff options
author | thompsa <andy@fud.org.nz> | 2010-03-05 21:14:23 +1300 |
---|---|---|
committer | thompsa <andy@fud.org.nz> | 2010-03-05 21:14:23 +1300 |
commit | e4a794f7f93fae4b947b93fbdcc7d5eff659d675 (patch) | |
tree | 07bedc66fa6b433569b41f59b52996f5e247ba91 /config | |
parent | 012cd354237bda4768a7cd62ad902f0841fb78bb (diff) | |
download | pfsense-packages-e4a794f7f93fae4b947b93fbdcc7d5eff659d675.tar.gz pfsense-packages-e4a794f7f93fae4b947b93fbdcc7d5eff659d675.tar.bz2 pfsense-packages-e4a794f7f93fae4b947b93fbdcc7d5eff659d675.zip |
Dont enable the check on tcp mode unless the user specifies it, it
doesnt make sense otherwise.
Diffstat (limited to 'config')
-rw-r--r-- | config/haproxy-dev/haproxy.inc | 4 |
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) { |