summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorBill Marquette <billm@pfsense.org>2006-10-15 05:20:35 +0000
committerBill Marquette <billm@pfsense.org>2006-10-15 05:20:35 +0000
commit89a75ca9d12517b4d3b9d6fd58196d726e9ee010 (patch)
tree6764dfac1589e8617c4064828279171c9132664c /etc
parent91dc2ecf6593378ac726e5ab975c1b8eafd46294 (diff)
downloadpfsense-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.class6
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);
OpenPOWER on IntegriCloud