From 46ca70a2249d377a74e328a00e984fc4dbeae1b7 Mon Sep 17 00:00:00 2001 From: DeepCoreSystem Date: Tue, 19 Oct 2021 15:19:32 +0200 Subject: [PATCH] Make regfish DynDNS work for IPv4 and IPv6 (#2531) regfish requires 2 different URIs to update, depending on the IP family. https://dyndns.regfish.de is for IPv4 and https://dyndns6.regfish.de is for IPv6. --- dns/dyndns/src/etc/inc/plugins.inc.d/dyndns/phpDynDNS.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dns/dyndns/src/etc/inc/plugins.inc.d/dyndns/phpDynDNS.inc b/dns/dyndns/src/etc/inc/plugins.inc.d/dyndns/phpDynDNS.inc index aeef52eef..efaa71bf0 100644 --- a/dns/dyndns/src/etc/inc/plugins.inc.d/dyndns/phpDynDNS.inc +++ b/dns/dyndns/src/etc/inc/plugins.inc.d/dyndns/phpDynDNS.inc @@ -1044,9 +1044,11 @@ class updatedns curl_setopt($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4); break; case 'regfish': + $server = "https://dyndns.regfish.de/?fqdn={$this->_dnsHost}&ipv4={$this->_dnsIP}&forcehost=1&token=" . urlencode($this->_dnsUser); + curl_setopt($ch, CURLOPT_URL, $server); + break; case 'regfish-v6': - $family = $this->_useIPv6 ? 'ipv6' : 'ipv4'; - $server = "https://dyndns.regfish.de/?fqdn={$this->_dnsHost}&{$family}={$this->_dnsIP}&forcehost=1&token=" . urlencode($this->_dnsUser); + $server = "https://dyndns6.regfish.de/?fqdn={$this->_dnsHost}&ipv6={$this->_dnsIP}&forcehost=1&token=" . urlencode($this->_dnsUser); curl_setopt($ch, CURLOPT_URL, $server); break; case 'linode':