diff options
author | Ermal <eri@pfsense.org> | 2010-12-10 19:04:48 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-12-10 19:04:48 +0000 |
commit | a79c72d7098552d123922828660e51d445e1c293 (patch) | |
tree | 8b8f1e518e3fb1e1f45c957d9ed45107490b5bf4 /usr/local | |
parent | 9e18b39240bc7bfccffd1943ac00aaa8dfbf736c (diff) | |
download | pfsense-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-x | usr/local/www/xmlrpc.php | 4 |
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); |