summaryrefslogtreecommitdiffstats
path: root/src/etc
diff options
context:
space:
mode:
authorMartin Hagelin <martin@hagelin.nu>2017-06-09 09:10:50 +0200
committerGitHub <noreply@github.com>2017-06-09 09:10:50 +0200
commit6db163982378139880394b43641f3d0cdc8d281c (patch)
tree0e01c062055b7909a2835e91b0ed8eedcb13af66 /src/etc
parenta550ca4e93dc433dac85e828355897913c07fedd (diff)
downloadpfsense-6db163982378139880394b43641f3d0cdc8d281c.zip
pfsense-6db163982378139880394b43641f3d0cdc8d281c.tar.gz
Fix DNS wildcard support for Loopia
Fix for the problem that wildcard CNAME records disappear from Loopia when doing a DNS update. As discussed here: https://forum.pfsense.org/index.php?topic=67793.0
Diffstat (limited to 'src/etc')
-rw-r--r--src/etc/inc/dyndns.class3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/etc/inc/dyndns.class b/src/etc/inc/dyndns.class
index 3fa2613..07b34bb 100644
--- a/src/etc/inc/dyndns.class
+++ b/src/etc/inc/dyndns.class
@@ -571,8 +571,9 @@
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);
+ curl_setopt($ch, CURLOPT_URL, 'https://dns.loopia.se/XDynDNSServer/XDynDNS.php?hostname='.$this->_dnsHost.'&myip='.$this->_dnsIP.'&wildcard='.$this->_dnsWildcard);
break;
case 'opendns':
$needsIP = FALSE;
OpenPOWER on IntegriCloud