diff options
author | Bill Marquette <billm@pfsense.org> | 2006-10-15 05:20:35 +0000 |
---|---|---|
committer | Bill Marquette <billm@pfsense.org> | 2006-10-15 05:20:35 +0000 |
commit | 89a75ca9d12517b4d3b9d6fd58196d726e9ee010 (patch) | |
tree | 6764dfac1589e8617c4064828279171c9132664c /etc | |
parent | 91dc2ecf6593378ac726e5ab975c1b8eafd46294 (diff) | |
download | pfsense-89a75ca9d12517b4d3b9d6fd58196d726e9ee010.zip pfsense-89a75ca9d12517b4d3b9d6fd58196d726e9ee010.tar.gz |
ZoneEdit now works, tested by myself and korozion
MFC checkin [15047]
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/dyndns.class | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/etc/inc/dyndns.class b/etc/inc/dyndns.class index 3068457..8e3a243 100644 --- a/etc/inc/dyndns.class +++ b/etc/inc/dyndns.class @@ -288,13 +288,17 @@ case 'zoneedit': $needsIP = FALSE; curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); + curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); + curl_setopt($ch, CURLOPT_USERPWD, $this->_dnsUser.':'.$this->_dnsPass); + $server = "https://dynamic.zoneedit.com/auth/dynamic.html"; $port = ""; if($this->_dnsServer) $server = $this->_dnsServer; if($this->_dnsPort) $port = ":" . $this->_dnsPort; - curl_setopt($ch, CURLOPT_URL, '{$server}{$port}?host='.$this->_dnsHost.'&dnsto='.$this->_dnsIP); + curl_setopt($ch, CURLOPT_URL, "{$server}{$port}?host=" .$this->_dnsHost); + $data = curl_exec($ch); if (@curl_error($ch)) log_error("Curl errror occured: " . curl_error($ch)); curl_close($ch); |