summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-08-21 01:46:00 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-08-21 01:46:00 +0000
commit20091784f95a1c4b0c47c8311e08a8d6f2dd2667 (patch)
tree2ff2cbf611d045112f213e3ab7bd5a3c027a1d6e /etc
parent7c4990af58e1901a1dc1108ff1116723f542bdff (diff)
downloadpfsense-20091784f95a1c4b0c47c8311e08a8d6f2dd2667.zip
pfsense-20091784f95a1c4b0c47c8311e08a8d6f2dd2667.tar.gz
Hard code "virtualip"
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/filter.inc2
-rw-r--r--etc/inc/pfsense-utils.inc4
2 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index 4357677..68af9a3 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -2351,7 +2351,7 @@ function carp_sync_client() {
}
if($carp['synchronizecarp'] != "" and is_array($config['virtualip'])) {
- $sections_xml[] = new XML_RPC_Value(backup_vip_config_section("virtualip"), 'string');
+ $sections_xml[] = new XML_RPC_Value(backup_vip_config_section(), 'string');
$sections[] = new XML_RPC_Value('virtualip', 'string');
}
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index 98dfb0a..ae1fe69 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -720,7 +720,7 @@ function backup_config_section($section) {
* backup_config_section($section): returns as an xml file string of
* the configuration section
*/
-function backup_vip_config_section($section) {
+function backup_vip_config_section() {
global $config;
$new_section = &$config['virtualip'];
foreach($new_section as $section) {
@@ -729,7 +729,7 @@ function backup_vip_config_section($section) {
}
}
/* generate configuration XML */
- $xmlconfig = dump_xml_config($new_section, $section);
+ $xmlconfig = dump_xml_config($new_section, "virtualip");
$xmlconfig = str_replace("<?xml version=\"1.0\"?>", "", $xmlconfig);
return $xmlconfig;
}
OpenPOWER on IntegriCloud