aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorthompsa <andy@fud.org.nz>2010-04-23 12:20:13 +1200
committerthompsa <andy@fud.org.nz>2010-04-23 12:20:13 +1200
commita210b68ca96449554892c3d28117331a89952627 (patch)
tree026e0ba443a4de742d3f0569ed99aab6e2d0eee3 /config
parentd42eebcb2cec1864c2521545a38392a13bdda95b (diff)
downloadpfsense-packages-a210b68ca96449554892c3d28117331a89952627.tar.gz
pfsense-packages-a210b68ca96449554892c3d28117331a89952627.tar.bz2
pfsense-packages-a210b68ca96449554892c3d28117331a89952627.zip
Fix copy-n-paste error where the continue statement is now a return.
Diffstat (limited to 'config')
-rw-r--r--config/haproxy-dev/haproxy.inc2
-rw-r--r--config/haproxy-stable/haproxy.inc2
2 files changed, 2 insertions, 2 deletions
diff --git a/config/haproxy-dev/haproxy.inc b/config/haproxy-dev/haproxy.inc
index f14d479c..d9d3923a 100644
--- a/config/haproxy-dev/haproxy.inc
+++ b/config/haproxy-dev/haproxy.inc
@@ -246,7 +246,7 @@ function haproxy_find_acl($name) {
function write_backend($fd, $name, $pool, $frontend) {
if(!is_array($pool['ha_servers']['item']))
- continue;
+ return;
fwrite ($fd, "backend " . $name . "\n");
if($pool['cookie_name'] && strtolower($frontend['type']) == "http")
diff --git a/config/haproxy-stable/haproxy.inc b/config/haproxy-stable/haproxy.inc
index 5cc61e4b..eb45f21d 100644
--- a/config/haproxy-stable/haproxy.inc
+++ b/config/haproxy-stable/haproxy.inc
@@ -160,7 +160,7 @@ function haproxy_find_acl($name) {
function write_backend($fd, $name, $pool, $frontend) {
if($pool['status'] != 'active' || !is_array($pool['ha_servers']['item']))
- continue;
+ return;
fwrite ($fd, "backend " . $name . "\n");
if($pool['cookie_name'] && strtolower($frontend['type']) == "http")