From 8831267c83e66c7247b99f3539a942cb03eaeb38 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Fri, 20 Nov 2009 17:34:59 -0500 Subject: Prevent sync loops --- config/haproxy/haproxy.inc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'config') 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), -- cgit v1.2.3