summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/inc/dyndns.class7
-rwxr-xr-xusr/local/www/services_dyndns.php4
2 files changed, 5 insertions, 6 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);
diff --git a/usr/local/www/services_dyndns.php b/usr/local/www/services_dyndns.php
index a9633d5..6a83a08 100755
--- a/usr/local/www/services_dyndns.php
+++ b/usr/local/www/services_dyndns.php
@@ -176,8 +176,8 @@ function enable_change(enable_change) {
<td width="78%" class="vtable">
<select name="type" class="formfld" id="type">
<?php
- $types = explode(",", "DynDNS (dynamic),DynDNS (static),DynDNS (custom),DHS,DyNS,easyDNS,No-IP,ODS.org,ZoneEdit");
- $vals = explode(" ", "dyndns dyndns-static dyndns-custom dhs dyns easydns noip ods zoneedit");
+ $types = explode(",", "DynDNS (dynamic),DynDNS (static),DynDNS (custom),DHS,DyNS,easyDNS,No-IP,ODS.org,ZoneEdit,ZoneEdit,Loopia,freeDNS");
+ $vals = explode(" ", "dyndns dyndns-static dyndns-custom dhs dyns easydns noip ods zoneedit loopia freedns");
$j = 0; for ($j = 0; $j < count($vals); $j++): ?>
<option value="<?=$vals[$j];?>" <?php if ($vals[$j] == $pconfig['type']) echo "selected";?>>
<?=htmlspecialchars($types[$j]);?>
OpenPOWER on IntegriCloud