Revision c7df496c
Added by Ricky Burgin about 5 years ago
src/etc/inc/dyndns.class | ||
---|---|---|
223 | 223 |
switch ($dnsService) { |
224 | 224 |
case 'freedns': |
225 | 225 |
case 'freedns-v6': |
226 |
case 'freedns-v2':
|
|
227 |
case 'freedns-v6-v2':
|
|
226 |
case 'freedns2': |
|
227 |
case 'freedns2-v6':
|
|
228 | 228 |
if (!$dnsHost) $this->_error(5); |
229 | 229 |
break; |
230 | 230 |
case "namecheap": |
... | ... | |
296 | 296 |
case 'route53-v6': |
297 | 297 |
case 'duiadns-v6': |
298 | 298 |
case 'freedns-v6': |
299 |
case 'freedns-v6-v2':
|
|
299 |
case 'freedns2-v6':
|
|
300 | 300 |
case 'cloudflare-v6': |
301 | 301 |
case 'dreamhost-v6': |
302 | 302 |
case 'godaddy-v6': |
... | ... | |
365 | 365 |
case 'ods': |
366 | 366 |
case 'freedns': |
367 | 367 |
case 'freedns-v6': |
368 |
case 'freedns-v2':
|
|
369 |
case 'freedns-v6-v2':
|
|
368 |
case 'freedns2': |
|
369 |
case 'freedns2-v6':
|
|
370 | 370 |
case 'loopia': |
371 | 371 |
case 'staticcling': |
372 | 372 |
case 'dnsexit': |
... | ... | |
675 | 675 |
$needIP = TRUE; |
676 | 676 |
curl_setopt($ch, CURLOPT_URL, 'https://freedns.afraid.org/dynamic/update.php?' . $this->_dnsPass . '&address=' . $this->_dnsIP); |
677 | 677 |
break; |
678 |
case 'freedns-v2':
|
|
678 |
case 'freedns2': |
|
679 | 679 |
$needIP = TRUE; |
680 | 680 |
curl_setopt($ch, CURLOPT_URL, 'https://sync.afraid.org/u/' . $this->_dnsPass . '/?hostname=' . $this->_dnsHost . '&myip=' . $this->_dnsIP); |
681 | 681 |
break; |
682 |
case 'freedns-v6-v2':
|
|
682 |
case 'freedns2-v6':
|
|
683 | 683 |
$needIP = TRUE; |
684 | 684 |
curl_setopt($ch, CURLOPT_URL, 'https://v6.sync.afraid.org/u/' . $this->_dnsPass . '/?hostname=' . $this->_dnsHost . '&myip=' . $this->_dnsIP); |
685 | 685 |
break; |
... | ... | |
1823 | 1823 |
$this->_debug($data); |
1824 | 1824 |
} |
1825 | 1825 |
break; |
1826 |
case 'freedns-v2':
|
|
1827 |
case 'freedns-v6-v2':
|
|
1826 |
case 'freedns2': |
|
1827 |
case 'freedns2-v6':
|
|
1828 | 1828 |
if (preg_match("/No IP change detected/i", $data)) { |
1829 | 1829 |
$status = $status_intro . $success_str . gettext("No Change In IP Address"); |
1830 | 1830 |
$successful_update = true; |
Also available in: Unified diff
Adjusted freedns v2 API var name to be more readable