mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
dns/dyndns: update HE.net TunnelBroker URL (#1119)
* dns/dyndns: update HE.net Tunnelbroker URL * dns/dyndns: update HE.net dns service - Don't force IPv4 only host resolving for the dynamic dns update service, - Enable HTTPS cert verification for HE.net dns, it seems they now use Let's Encrypt, instead of a self-signed certificate. * dns/dyndns: bump version for HE.net dns and tunnelbroker updates
This commit is contained in:
committed by
Franco Fichtner
parent
1f96ba04e3
commit
825f751caa
+1
-1
@@ -1,5 +1,5 @@
|
||||
PLUGIN_NAME= dyndns
|
||||
PLUGIN_VERSION= 1.11
|
||||
PLUGIN_VERSION= 1.12
|
||||
PLUGIN_COMMENT= Dynamic DNS Support
|
||||
PLUGIN_MAINTAINER= franco@opnsense.org
|
||||
|
||||
|
||||
@@ -597,15 +597,14 @@ class updatedns
|
||||
case 'he-net':
|
||||
case 'he-net-v6':
|
||||
$server = "https://dyn.dns.he.net/nic/update?";
|
||||
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
|
||||
curl_setopt($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);
|
||||
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
|
||||
curl_setopt($ch, CURLOPT_URL, $server . 'hostname=' . $this->_dnsHost . '&password=' . $this->_dnsPass . '&myip=' . $this->_dnsIP);
|
||||
break;
|
||||
case 'he-net-tunnelbroker':
|
||||
$server = "https://ipv4.tunnelbroker.net/ipv4_end.php?";
|
||||
$server = "https://ipv4.tunnelbroker.net/nic/update?";
|
||||
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
|
||||
curl_setopt($ch, CURLOPT_USERPWD, $this->_dnsUser . ':' . $this->_dnsPass);
|
||||
curl_setopt($ch, CURLOPT_URL, $server . 'tid=' . $this->_dnsHost);
|
||||
curl_setopt($ch, CURLOPT_URL, $server . 'hostname=' . $this->_dnsHost);
|
||||
break;
|
||||
case 'selfhost':
|
||||
if (isset($this->_dnsWildcard) && $this->_dnsWildcard != "OFF") {
|
||||
|
||||
Reference in New Issue
Block a user