summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-10-25 19:16:11 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-10-25 19:16:11 +0000
commit1331005d4f4c6861dac1cf6a6e716660df316552 (patch)
tree95a1303a14c21efbed7a0773122bdcc2de27637b /etc
parentd237be68c65fdb44001057fb88a5148582c6fa10 (diff)
downloadpfsense-1331005d4f4c6861dac1cf6a6e716660df316552.zip
pfsense-1331005d4f4c6861dac1cf6a6e716660df316552.tar.gz
MFC 7162
$config is not working correctly as a global. Let the other scripts handle calling updatedns if they need to.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/dyndns.class15
1 files changed, 9 insertions, 6 deletions
diff --git a/etc/inc/dyndns.class b/etc/inc/dyndns.class
index e383700..a1d6a79 100644
--- a/etc/inc/dyndns.class
+++ b/etc/inc/dyndns.class
@@ -68,6 +68,8 @@
function updatedns ($dnsService = '', $dnsHost = '', $dnsUser = '', $dnsPass = '', $dnsWildcard = 'OFF', $dnsMX = '', $dnsBackMX = '') {
global $config;
+ log_error("DynDns: updatedns() starting");
+
if (!$dnsService) $this->_error(2);
if (!$dnsUser) $this->_error(3);
if (!$dnsPass) $this->_error(4);
@@ -80,12 +82,6 @@
$this->_dnsIP = $dnsIP;
$this->_debugID = rand(1000000, 9999999);
- if (!isset($config['dyndns']['enabled'])) {
- @unlink($this->_cacheFile);
- @unlink($this->_debugFile);
- return true;
- }
-
if ($this->_detectChange() == FALSE) {
$this->_error(10);
} else {
@@ -113,6 +109,9 @@
* Send Update To Selected Service.
*/
function _update() {
+
+ log_error("DynDns: DynDns _update() starting.");
+
if ($this->_dnsService != 'ods') {
$ch = curl_init();
curl_setopt($ch, CURLOPT_HEADER, 0);
@@ -254,6 +253,7 @@
* Retrieve Update Status
*/
function _checkStatus($data) {
+ log_error("DynDns: DynDns _checkStatus() starting.");
switch ($this->_dnsService) {
case 'dyndns':
if (preg_match('/notfqdn/i', $data)) {
@@ -458,6 +458,9 @@
* | work with other systems. pfSense base is FreeBSD.
*/
function _detectChange() {
+
+ log_error("DynDns: _detectChange() starting.");
+
$currentTime = time();
$wan_ip = get_current_wan_address();
OpenPOWER on IntegriCloud