mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Merge pull request #3723 from xygrec/dyndns-hover-ssl
This commit is contained in:
commit
20e0492b55
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user