summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-12-10 19:04:48 +0000
committerErmal <eri@pfsense.org>2010-12-10 19:04:48 +0000
commita79c72d7098552d123922828660e51d445e1c293 (patch)
tree8b8f1e518e3fb1e1f45c957d9ed45107490b5bf4 /usr/local
parent9e18b39240bc7bfccffd1943ac00aaa8dfbf736c (diff)
downloadpfsense-a79c72d7098552d123922828660e51d445e1c293.zip
pfsense-a79c72d7098552d123922828660e51d445e1c293.tar.gz
Actually the passed config sections are part of index 1 of the array. This fixes config sync of vips as well.
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/xmlrpc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/xmlrpc.php b/usr/local/www/xmlrpc.php
index 4909498..b7bf474 100755
--- a/usr/local/www/xmlrpc.php
+++ b/usr/local/www/xmlrpc.php
@@ -159,7 +159,7 @@ function restore_config_section_xmlrpc($raw_params) {
if(!xmlrpc_auth($params))
return $xmlrpc_g['return']['authfail'];
$vipbackup = array();
- if (isset($params[0]['virtualip'])) {
+ if (isset($params[1]['virtualip'])) {
if(is_array($config['virtualip']['vip'])) {
foreach ($config['virtualip']['vip'] as $vip)
interface_vip_bring_down($vip);
@@ -219,7 +219,7 @@ function merge_config_section_xmlrpc($raw_params) {
$params = xmlrpc_params_to_php($raw_params);
if(!xmlrpc_auth($params))
return $xmlrpc_g['return']['authfail'];
- if (isset($params[0]['virtualip'])) {
+ if (isset($params[1]['virtualip'])) {
if(is_array($config['virtualip']['vip'])) {
foreach ($config['virtualip']['vip'] as $vip)
interface_vip_bring_down($vip);
OpenPOWER on IntegriCloud