mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
Fix FreeDNS update in DynDNS plugin (#2263)
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user