summaryrefslogtreecommitdiffstats
path: root/etc/inc/dyndns.class
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-11-05 23:11:23 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-11-05 23:11:23 +0000
commit458d80d7e1712544701fc78b87077e4cd62ff761 (patch)
treed5eeecc69def9effdb7edfe5b26296544e7c162c /etc/inc/dyndns.class
parenta6bfa4ba238a7bd940dff8a46c95ad1e9db09dc8 (diff)
downloadpfsense-458d80d7e1712544701fc78b87077e4cd62ff761.zip
pfsense-458d80d7e1712544701fc78b87077e4cd62ff761.tar.gz
MFC 7395
Adjust the timeout for updates.
Diffstat (limited to 'etc/inc/dyndns.class')
-rw-r--r--etc/inc/dyndns.class8
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/inc/dyndns.class b/etc/inc/dyndns.class
index e66946b..7be0c9c 100644
--- a/etc/inc/dyndns.class
+++ b/etc/inc/dyndns.class
@@ -117,7 +117,7 @@
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_USERAGENT, $this->_UserAgent);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
- curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 30);
+ curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 120);
}
switch ($this->_dnsService) {
@@ -127,7 +127,7 @@
curl_setopt($ch, CURLOPT_USERPWD, $this->_dnsUser.':'.$this->_dnsPass);
curl_setopt($ch, CURLOPT_URL, 'https://members.dyndns.org/nic/update?hostname='.$this->_dnsHost.'&myip='.$this->_dnsIP.'&wildcard='.$this->_dnsWildcard.'&mx='.$this->_dnsMX.'&backmx=NO');
$data = curl_exec($ch);
- curl_close($ch);
+\ curl_close($ch);
$this->_checkStatus($data);
break;
case 'dyndns-static':
@@ -359,7 +359,7 @@
break;
default:
$status = "phpDynDNS: (Unknown Response)";
- $this->_debug($data);
+ $this->_debug("Unknown Response: ".$data);
break;
}
break;
@@ -554,4 +554,4 @@
}
-?> \ No newline at end of file
+?>
OpenPOWER on IntegriCloud