aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-11-22 21:17:05 -0500
committerScott Ullrich <sullrich@pfsense.org>2009-11-22 21:17:05 -0500
commitfb592922f37662ae8c224222ca1a938474303bbb (patch)
tree724e0a516c61ee34db63facd2b016c72eee85f1e /config
parent3baf900431ee6b4d346ee66fae8e77b3294af124 (diff)
downloadpfsense-packages-fb592922f37662ae8c224222ca1a938474303bbb.tar.gz
pfsense-packages-fb592922f37662ae8c224222ca1a938474303bbb.tar.bz2
pfsense-packages-fb592922f37662ae8c224222ca1a938474303bbb.zip
Do not allow haproxy to sync to self even if the ip is passed the first check (possibly still in config.xml)
Diffstat (limited to 'config')
-rw-r--r--config/haproxy/haproxy.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/config/haproxy/haproxy.inc b/config/haproxy/haproxy.inc
index e11e6cdf..e55eca59 100644
--- a/config/haproxy/haproxy.inc
+++ b/config/haproxy/haproxy.inc
@@ -253,6 +253,10 @@ function haproxy_do_xmlrpc_sync($sync_to_ip, $password) {
if(!$sync_to_ip)
return;
+
+ // Do not allow syncing to self.
+ if(`/sbin/ifconfig -a | grep "$sync_to_ip"`)
+ return;
$xmlrpc_sync_neighbor = $sync_to_ip;
if($config['system']['webgui']['protocol'] != "") {