mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Fixed #8014
Fixed wildcard variable not being set correctly. Updated CURLOPT_URL according to provider's documentation. Added support for MX records.
This commit is contained in:
parent
6f6299a3a6
commit
cedc818460
@ -95,7 +95,7 @@
|
||||
* ODS - Last Tested: 02 August 2005
|
||||
* FreeDNS - Last Tested: 01 May 2016
|
||||
* FreeDNS IPv6 - Last Tested: 01 May 2016
|
||||
* Loopia - Last Tested: NEVER
|
||||
* Loopia - Last Tested: 21 August 2019
|
||||
* StaticCling - Last Tested: 27 April 2006
|
||||
* DNSexit - Last Tested: 20 July 2008
|
||||
* OpenDNS - Last Tested: 4 August 2008
|
||||
@ -633,9 +633,13 @@
|
||||
break;
|
||||
case 'loopia':
|
||||
$needsIP = TRUE;
|
||||
if (isset($this->_dnsWildcard) && $this->_dnsWildcard != "OFF") $this->_dnsWildcard = "ON";
|
||||
curl_setopt($ch, CURLOPT_USERPWD, $this->_dnsUser.':'.$this->_dnsPass);
|
||||
curl_setopt($ch, CURLOPT_URL, 'https://dns.loopia.se/XDynDNSServer/XDynDNS.php?hostname='.$this->_dnsHost.'&myip='.$this->_dnsIP.'&wildcard='.$this->_dnsWildcard);
|
||||
if(isset($this->_dnsWildcard) && $this->_dnsWildcard == TRUE) {
|
||||
$this->_dnsWildcard = "ON";
|
||||
} else {
|
||||
$this->_dnsWildcard = "OFF";
|
||||
}
|
||||
curl_setopt($ch, CURLOPT_USERPWD, "{$this->_dnsUser}:{$this->_dnsPass}");
|
||||
curl_setopt($ch, CURLOPT_URL, "https://dyndns.loopia.se/?system=custom&hostname={$this->_dnsHost}&myip={$this->_dnsIP}&wildcard={$this->_dnsWildcard}&mx={$this->_dnsMX}&backmx=NO");
|
||||
break;
|
||||
case 'opendns':
|
||||
$needsIP = FALSE;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user