diff options
author | Jim P <jim@pingle.org> | 2013-09-29 13:49:03 -0700 |
---|---|---|
committer | Jim P <jim@pingle.org> | 2013-09-29 13:49:03 -0700 |
commit | 4a018bc3a587d75aa25b6b70923f37fe40f79c70 (patch) | |
tree | ac9af4a0f88faf56f2a8a70ef081ddcf6ca7cbc7 /config/haproxy-devel/haproxy_listeners_edit.php | |
parent | 3e9c867677850f3d906f542c6a13acf1b69b4619 (diff) | |
parent | 3325861b6692036da5818ba19bf4741b0d0319a9 (diff) | |
download | pfsense-packages-4a018bc3a587d75aa25b6b70923f37fe40f79c70.tar.gz pfsense-packages-4a018bc3a587d75aa25b6b70923f37fe40f79c70.tar.bz2 pfsense-packages-4a018bc3a587d75aa25b6b70923f37fe40f79c70.zip |
Merge pull request #517 from PiBa-NL/HAProxy_update_frontendname_references
haproxy-devel, cleanup+use only settings from primary frontend, XMLRPC-Sync redesigned
Diffstat (limited to 'config/haproxy-devel/haproxy_listeners_edit.php')
-rw-r--r-- | config/haproxy-devel/haproxy_listeners_edit.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/config/haproxy-devel/haproxy_listeners_edit.php b/config/haproxy-devel/haproxy_listeners_edit.php index 8f9c2484..dc418614 100644 --- a/config/haproxy-devel/haproxy_listeners_edit.php +++ b/config/haproxy-devel/haproxy_listeners_edit.php @@ -229,6 +229,15 @@ if ($_POST) { if($backend['name'] != "") $changedesc .= " modified '{$backend['name']}' pool:"; + + // update references to this primary frontend + if ($backend['name'] != $_POST['name']) { + foreach($a_backend as &$frontend) { + if ($frontend['primary_frontend'] == $backend['name']) { + $frontend['primary_frontend'] = $_POST['name']; + } + } + } foreach($simplefields as $stat) update_if_changed($stat, $backend[$stat], $_POST[$stat]); |