mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
DynDNS Custom Updater: Un-restrict Verify Peer & IPv4 Resolve
Verify peer and IP resolve have value aside from authentication. For cases where authentication is not used it can still be desirable to confirm identity and prevent MITM.
This commit is contained in:
@@ -733,15 +733,15 @@ class updatedns
|
||||
break;
|
||||
case 'custom':
|
||||
case 'custom-v6':
|
||||
if ($this->_curlIpresolveV4) {
|
||||
curl_setopt($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);
|
||||
}
|
||||
if ($this->_curlSslVerifypeer) {
|
||||
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
|
||||
} else {
|
||||
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
|
||||
}
|
||||
if ($this->_dnsUser != '') {
|
||||
if ($this->_curlIpresolveV4) {
|
||||
curl_setopt($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);
|
||||
}
|
||||
if ($this->_curlSslVerifypeer) {
|
||||
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
|
||||
} else {
|
||||
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
|
||||
}
|
||||
curl_setopt($ch, CURLOPT_USERPWD, "{$this->_dnsUser}:{$this->_dnsPass}");
|
||||
}
|
||||
$server = str_replace("%IP%", $this->_dnsIP, $this->_dnsUpdateURL);
|
||||
|
||||
Reference in New Issue
Block a user