summaryrefslogtreecommitdiffstats
path: root/usr/local/www/xmlrpc.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-06-08 18:21:00 +0000
committerErmal <eri@pfsense.org>2011-06-08 18:21:00 +0000
commitd1e03822589feb3a953d178e1944882db9767ffc (patch)
treefea238c2e50cf26803d629cdc4d27db43e3a784f /usr/local/www/xmlrpc.php
parent578f20ec2f8c695cfe7ac8dc67338adf07b2a4dd (diff)
downloadpfsense-d1e03822589feb3a953d178e1944882db9767ffc.zip
pfsense-d1e03822589feb3a953d178e1944882db9767ffc.tar.gz
Remove the entry from old entries even when there are no changes to prevent marking them down.
Diffstat (limited to 'usr/local/www/xmlrpc.php')
-rwxr-xr-xusr/local/www/xmlrpc.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr/local/www/xmlrpc.php b/usr/local/www/xmlrpc.php
index 78d1023..db23ee0 100755
--- a/usr/local/www/xmlrpc.php
+++ b/usr/local/www/xmlrpc.php
@@ -199,8 +199,9 @@ function restore_config_section_xmlrpc($raw_params) {
foreach ($config['virtualip']['vip'] as $vip) {
if (isset($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']}"))
- continue; // Skip reconfiguring this vips since nothing has changed.
+ unset($oldvips[$vip['vhid']]);
+ if (does_interface_exist("vip{$vip['vhid']}"))
+ continue; // Skip reconfiguring this vips since nothing has changed.
} else
unset($oldvips[$vip['vhid']]);
}
OpenPOWER on IntegriCloud