diff options
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/xmlrpc.php | 6 |
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']) { |