Fix FreeDNS update in DynDNS plugin (#2263)

This commit is contained in:
rmrfus
2021-04-21 08:57:42 +02:00
committed by GitHub
parent 576164256d
commit 84cc6b20d2
2 changed files with 3 additions and 2 deletions
@@ -587,7 +587,7 @@ class updatedns
$this->_checkStatus(0, $code);
break;
case 'freedns':
curl_setopt($ch, CURLOPT_URL, 'https://freedns.afraid.org/dynamic/update.php?' . $this->_dnsPass);
curl_setopt($ch, CURLOPT_URL, 'https://sync.afraid.org/u/' . $this->_dnsPass . '/');
break;
case 'dnsexit':
curl_setopt($ch, CURLOPT_URL, 'https://update.dnsexit.com/RemoteUpdate.sv?login=' . urlencode($this->_dnsUser) . '&password=' . $this->_dnsPass . '&host=' . $this->_dnsHost . '&myip=' . $this->_dnsIP);
@@ -1329,7 +1329,7 @@ class updatedns
}
break;
case 'freedns':
if (preg_match("/has not changed./i", $data)) {
if (preg_match("/No IP change detected.*skipping update/i", $data)) {
$status = "Dynamic DNS ({$this->_dnsHost}): (Success) No Change In IP Address";
$successful_update = true;
} elseif (preg_match("/Updated/i", $data)) {
@@ -369,6 +369,7 @@ include("head.inc");
<br /><?= gettext('For Custom Entries, Username and Password represent HTTP Authentication username and passwords.') ?>
<br /><?= gettext('Gandi LiveDNS: The subdomain / record to update.') ?>
<br /><?= gettext('GoDaddy: Enter your API Key Token.') ?>
<br /><?= gettext('FreeDNS: Leave blank.') ?>
</div>
</td>
</tr>