From 29cd3a04feca56f448d30f546eb68c79f7626895 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Wed, 21 Apr 2021 09:33:04 +0200 Subject: [PATCH] dns/dyndns: post-op --- dns/dyndns/src/etc/inc/plugins.inc.d/dyndns/phpDynDNS.inc | 4 ++-- 1 file changed, 2 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 0395d97aa..a7f45f666 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 @@ -1238,7 +1238,7 @@ class updatedns * dnsPass should be the token, NOT the 36-character token id (https://forum.netgate.com/post/930114) * IPv4 is determined by deSEC API via the sending interface */ - + // temporarily disable useIPv6 to get IPv4 Address $this->_useIPv6 = false; $ipv4 = $this->_checkIP(); @@ -1775,7 +1775,7 @@ class updatedns $status = 'Dynamic DNS: (Error) Access to the resource is denied. The selected hostname is not eligible for dynamic updates.'; } elseif ($http_code == 429) { $status = 'Dynamic DNS: (Error) Rate limit reached. Please don\'t try more than one request per minute.'; - } elseif ($http_code == 200 AND preg_match('/good/i', $data)) { + } elseif ($http_code == 200 && preg_match('/good/i', $data)) { $status = 'Dynamic DNS: (Success) IP Address Updated Successfully!'; $successful_update = true; }