Merge pull request #3723 from xygrec/dyndns-hover-ssl

This commit is contained in:
Renato Botelho 2017-05-09 13:43:19 -03:00
commit 20e0492b55

View File

@ -827,7 +827,7 @@
$needsIP = FALSE;
$port = "";
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 1);
//step 1: login to API
$post_data['username'] = $this->_dnsUser;
@ -860,7 +860,7 @@
//step 3: update the IP
if ($hostID) {
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 1);
curl_setopt($ch, CURLOPT_COOKIE, $cookie_data);
$post_data['content'] = $this->_dnsIP;
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);