diff options
author | mortencombat <kennethvestergaard@gmail.com> | 2015-07-14 23:43:07 +0200 |
---|---|---|
committer | mortencombat <kennethvestergaard@gmail.com> | 2015-07-14 23:43:07 +0200 |
commit | 3e31a7f82589d3350f111bd7d81cc83a0ab253e2 (patch) | |
tree | e8b67ac093d08d94b3fce2a79c2356e4fb9d76c2 /etc | |
parent | 82921c72fa346730140aeb774ad56908f1df8f5c (diff) | |
download | pfsense-3e31a7f82589d3350f111bd7d81cc83a0ab253e2.zip pfsense-3e31a7f82589d3350f111bd7d81cc83a0ab253e2.tar.gz |
Fix GratisDNS support
The current implementation is not working for me, maybe the interface was changed by GratisDNS? I tested the update URL manually with the IP added ("&i=<ip>") which fixed the issue for me. Code adjusted to include IP.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/dyndns.class | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/dyndns.class b/etc/inc/dyndns.class index 29b5689..cb21fb5 100644 --- a/etc/inc/dyndns.class +++ b/etc/inc/dyndns.class @@ -690,13 +690,13 @@ curl_setopt($ch, CURLOPT_URL, $server .$port . '?hostname=' . $this->_dnsHost . '&myip=' . $this->_dnsIP); break; case 'gratisdns': - $needsIP = FALSE; + $needsIP = TRUE; if ($this->_dnsVerboseLog) { log_error("GratisDNS.dk ({$this->_dnsHost}): DNS update() starting."); } $server = "https://ssl.gratisdns.dk/ddns.phtml"; list($hostname, $domain) = explode(".", $this->_dnsHost, 2); - curl_setopt($ch, CURLOPT_URL, $server . '?u=' . $this->_dnsUser . '&p=' . $this->_dnsPass . '&h=' . $this->_dnsHost . '&d=' . $domain); + curl_setopt($ch, CURLOPT_URL, $server . '?u=' . $this->_dnsUser . '&p=' . $this->_dnsPass . '&h=' . $this->_dnsHost . '&d=' . $domain . '&i=' . $this->_dnsIP); break; case 'ovh-dynhost': $needsIP = FALSE; |