Revision 9d0d51e5
Added by xygrec about 8 years ago
src/etc/inc/dyndns.class | ||
---|---|---|
861 | 861 |
$needsIP = FALSE; |
862 | 862 |
$port = ""; |
863 | 863 |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); |
864 |
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
|
|
864 |
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 1);
|
|
865 | 865 |
|
866 | 866 |
//step 1: login to API |
867 | 867 |
$post_data['username'] = $this->_dnsUser; |
... | ... | |
894 | 894 |
//step 3: update the IP |
895 | 895 |
if ($hostID) { |
896 | 896 |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); |
897 |
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
|
|
897 |
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 1);
|
|
898 | 898 |
curl_setopt($ch, CURLOPT_COOKIE, $cookie_data); |
899 | 899 |
$post_data['content'] = $this->_dnsIP; |
900 | 900 |
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data); |
Also available in: Unified diff
Update dyndns.class
(cherry picked from commit 61c813f96de90e07bb63075847dabc041a5560b8)
(cherry picked from commit 0673b7b8eccfdd1d7aa8bd56de2ed6ba785a5370)