dns/dyndns: post-op
This commit is contained in:
parent
98548b2781
commit
ee651b0dbc
|
@ -448,7 +448,7 @@ class updatedns
|
||||||
case 'noip-free':
|
case 'noip-free':
|
||||||
curl_setopt_array($ch, [
|
curl_setopt_array($ch, [
|
||||||
CURLOPT_SSL_VERIFYPEER => true,
|
CURLOPT_SSL_VERIFYPEER => true,
|
||||||
CURLOPT_USERPWD => $this->_dnsUser.':'.$this->_dnsPass
|
CURLOPT_USERPWD => $this->_dnsUser . ':' . $this->_dnsPass
|
||||||
]);
|
]);
|
||||||
$server = "https://dynupdate.no-ip.com/nic/update";
|
$server = "https://dynupdate.no-ip.com/nic/update";
|
||||||
$port = "";
|
$port = "";
|
||||||
|
@ -470,7 +470,7 @@ class updatedns
|
||||||
} else {
|
} else {
|
||||||
$iptoset = $this->_dnsIP;
|
$iptoset = $this->_dnsIP;
|
||||||
}
|
}
|
||||||
curl_setopt($ch, CURLOPT_URL, $server . $port . '?hostname=' . $this->_dnsHost.'&myip=' . $iptoset);
|
curl_setopt($ch, CURLOPT_URL, $server . $port . '?hostname=' . $this->_dnsHost . '&myip=' . $iptoset);
|
||||||
break;
|
break;
|
||||||
case 'easydns':
|
case 'easydns':
|
||||||
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
|
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
|
||||||
|
|
Loading…
Reference in New Issue