summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-06-13 15:04:59 +0000
committerErmal <eri@pfsense.org>2011-06-13 15:04:59 +0000
commit19ed162443aba106bfa51f88fc082af7f09738ab (patch)
tree0802aa1a4fcc54a38649343580ff3b893e56c16a /usr
parentb09c2d86a1f019ff22448109615e11655f12690b (diff)
downloadpfsense-19ed162443aba106bfa51f88fc082af7f09738ab.zip
pfsense-19ed162443aba106bfa51f88fc082af7f09738ab.tar.gz
unset after checking that no reconfiguring is needed.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/xmlrpc.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr/local/www/xmlrpc.php b/usr/local/www/xmlrpc.php
index 1689b85..95f4d63 100755
--- a/usr/local/www/xmlrpc.php
+++ b/usr/local/www/xmlrpc.php
@@ -198,11 +198,13 @@ function restore_config_section_xmlrpc($raw_params) {
$anyproxyarp = false;
foreach ($config['virtualip']['vip'] as $vip) {
if (isset($oldvips[$vip['vhid']])) {
- unset($oldvips[$vip['vhid']]);
if ($oldvips[$vip['vhid']] == "{$vip['password']}{$vip['advskew']}{$vip['subnet']}{$vip['subnet_bits']}{$vip['advbase']}") {
- if (does_interface_exist("vip{$vip['vhid']}"))
+ if (does_interface_exist("vip{$vip['vhid']}")) {
+ unset($oldvips[$vip['vhid']]);
continue; // Skip reconfiguring this vips since nothing has changed.
+ }
}
+ unset($oldvips[$vip['vhid']]);
}
switch ($vip['mode']) {
OpenPOWER on IntegriCloud