aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-01-24 23:09:03 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-01-24 23:09:03 +0000
commit7942a469e81a5da9ac9919c0c5b03d4a7327c8ff (patch)
tree6e7859ad31142210bb4d9d61b2a82d4e123d2e99 /packages
parent28ea1f0ecd64214945fd5686888edcb258381a16 (diff)
downloadpfsense-packages-7942a469e81a5da9ac9919c0c5b03d4a7327c8ff.tar.gz
pfsense-packages-7942a469e81a5da9ac9919c0c5b03d4a7327c8ff.tar.bz2
pfsense-packages-7942a469e81a5da9ac9919c0c5b03d4a7327c8ff.zip
Do not use fancy php pointers, leading to the whipeout of carpsettings xml entries on secondary hosts
Diffstat (limited to 'packages')
-rw-r--r--packages/tinydns/tinydns_xmlrpc_sync.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/tinydns/tinydns_xmlrpc_sync.php b/packages/tinydns/tinydns_xmlrpc_sync.php
index 08e80e24..a1471fcc 100644
--- a/packages/tinydns/tinydns_xmlrpc_sync.php
+++ b/packages/tinydns/tinydns_xmlrpc_sync.php
@@ -52,8 +52,10 @@ function tinydns_do_xmlrpc_sync() {
if(!$config['installedpackages']['carpsettings']['config'][0]['synchronizetoip'])
return;
+ $sync_to_ip = $config['installedpackages']['carpsettings']['config'][0]['synchronizetoip'];
+
log_error("[tinydns] tinydns_xmlrpc_sync.php is starting.");
- $xmlrpc_sync_neighbor = $carp['synchronizetoip'];
+ $xmlrpc_sync_neighbor = $sync_to_ip;
if($config['system']['webgui']['protocol'] != "") {
$synchronizetoip = $config['system']['webgui']['protocol'];
$synchronizetoip .= "://";
@@ -67,7 +69,7 @@ function tinydns_do_xmlrpc_sync() {
$port = "443";
}
}
- $synchronizetoip .= $carp['synchronizetoip'];
+ $synchronizetoip .= $sync_to_ip;
/* xml will hold the sections to sync */
$xml = array();