diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-05-21 23:48:01 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-05-21 23:48:01 +0000 |
commit | 99295d7b9a856006046eeddd5605b1b37663e513 (patch) | |
tree | fe44efc70736f36321cd8f78328e0fe2724b69ec /etc | |
parent | 633d6e3fa2ea546e1ae79de0abbab08929448fec (diff) | |
download | pfsense-99295d7b9a856006046eeddd5605b1b37663e513.zip pfsense-99295d7b9a856006046eeddd5605b1b37663e513.tar.gz |
Fixes Loopia and FreeDNS in DynDNS services.
Submitted-by: Urban Skije
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/dyndns.class | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/etc/inc/dyndns.class b/etc/inc/dyndns.class index 2041c33..24c5521 100644 --- a/etc/inc/dyndns.class +++ b/etc/inc/dyndns.class @@ -95,7 +95,7 @@ /* freedns needs this */ - if (!$dnsUpdateURL) $this->_error(7); + if (!$dnsHost) $this->_error(5); } $this->_dnsService = strtolower($dnsService); @@ -107,7 +107,6 @@ $this->_dnsPort = $dnsPort; $this->_dnsWildcard = $dnsWildcard; $this->_dnsMX = $dnsMX; - $this->_dnsUpdateURL = $dnsUpdateURL; if(!$wan_ip) $wan_ip = get_current_wan_address(); @@ -359,7 +358,7 @@ break; case 'freedns': $needIP = FALSE; - curl_setopt($ch, CURLOPT_URL, $this->_dnsUpdateURL); + curl_setopt($ch, CURLOPT_URL, 'http://freedns.afraid.org/dynamic/update.php?' . $this->_dnsHost); $data = curl_exec($ch); if (@curl_error($ch)) log_error("Curl errror occured: " . curl_error($ch)); curl_close($ch); @@ -369,7 +368,7 @@ $needsIP = TRUE; curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_USERPWD, $this->_dnsUser.':'.$this->_dnsPass); - curl_setopt($ch, CURLOPT_URL, 'http://dns.loopia.se/XDynDNSServer/XDynDNS.php?hostname='.$this->_dnsHost.'&myip='.$this->_dnsIP); + curl_setopt($ch, CURLOPT_URL, 'https://dns.loopia.se/XDynDNSServer/XDynDNS.php?hostname='.$this->_dnsHost.'&myip='.$this->_dnsIP); $data = curl_exec($ch); if (@curl_error($ch)) log_error("Curl errror occured: " . curl_error($ch)); curl_close($ch); |