diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-05-21 23:50:43 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-05-21 23:50:43 +0000 |
commit | ce43f165ef114e357715f4decc714e323c111149 (patch) | |
tree | ff54c76d71ffdc55d90a3117fb225e5e44f27d18 /etc | |
parent | 43b769e0ab15815282d9d1cb8fd71547c2edb053 (diff) | |
download | pfsense-ce43f165ef114e357715f4decc714e323c111149.zip pfsense-ce43f165ef114e357715f4decc714e323c111149.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 8e3a243..bfe7447 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(); @@ -358,7 +357,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); @@ -368,7 +367,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); |