diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-01-24 23:09:03 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-01-24 23:09:03 +0000 |
commit | 7942a469e81a5da9ac9919c0c5b03d4a7327c8ff (patch) | |
tree | 6e7859ad31142210bb4d9d61b2a82d4e123d2e99 /packages/tinydns | |
parent | 28ea1f0ecd64214945fd5686888edcb258381a16 (diff) | |
download | pfsense-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/tinydns')
-rw-r--r-- | packages/tinydns/tinydns_xmlrpc_sync.php | 6 |
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(); |