aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-11-20 17:34:59 -0500
committerScott Ullrich <sullrich@pfsense.org>2009-11-20 17:34:59 -0500
commit8831267c83e66c7247b99f3539a942cb03eaeb38 (patch)
treedf906da1e13b954cd76f58abbda3f7b87b122e76
parent83fda4c08dae4da71aee83b2a06d48bcdf2bef30 (diff)
downloadpfsense-packages-8831267c83e66c7247b99f3539a942cb03eaeb38.tar.gz
pfsense-packages-8831267c83e66c7247b99f3539a942cb03eaeb38.tar.bz2
pfsense-packages-8831267c83e66c7247b99f3539a942cb03eaeb38.zip
Prevent sync loops
-rw-r--r--config/haproxy/haproxy.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/config/haproxy/haproxy.inc b/config/haproxy/haproxy.inc
index 31dd7ba5..e5aabb38 100644
--- a/config/haproxy/haproxy.inc
+++ b/config/haproxy/haproxy.inc
@@ -270,6 +270,12 @@ function haproxy_do_xmlrpc_sync($sync_to_ip, $password) {
$xml = array();
$xml['haproxy'] = $config['installedpackages']['haproxy'];
+ // Prevent sync loops
+ unset($xml['synchost1']);
+ unset($xml['synchost2']);
+ unset($xml['synchost3']);
+ unset($xml['syncpassword']);
+
/* assemble xmlrpc payload */
$params = array(
XML_RPC_encode($password),