dns/dyndns: post-op

This commit is contained in:
Franco Fichtner 2021-04-21 09:51:33 +02:00
parent 98548b2781
commit ee651b0dbc
1 changed files with 2 additions and 2 deletions

View File

@ -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);