From 007b64c5258e6e1d10f075177e3f1ccee9bf6b52 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Sun, 24 Feb 2019 20:36:17 +0100 Subject: [PATCH] dns/dyndns: correct address family request; closes #1202 --- dns/dyndns/Makefile | 3 +-- dns/dyndns/src/etc/inc/plugins.inc.d/dyndns/phpDynDNS.inc | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/dns/dyndns/Makefile b/dns/dyndns/Makefile index 33586b834..d0fd26bc6 100644 --- a/dns/dyndns/Makefile +++ b/dns/dyndns/Makefile @@ -1,6 +1,5 @@ PLUGIN_NAME= dyndns -PLUGIN_VERSION= 1.12 -PLUGIN_REVISION= 1 +PLUGIN_VERSION= 1.13 PLUGIN_COMMENT= Dynamic DNS Support PLUGIN_MAINTAINER= franco@opnsense.org 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 3e793dee5..01caa7cb9 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 @@ -259,11 +259,11 @@ class updatedns $this->_dnsMX = $dnsMX; $this->_dnsZoneID = $dnsZoneID; $this->_dnsTTL = $dnsTTL; - $this->_if = get_failover_interface($dnsIf); + $this->_if = get_failover_interface($dnsIf, $this->_useIPv6 ? 'inet6' : 'all'); $this->_checkIP(); $this->_dnsUpdateURL = $dnsUpdateURL; $this->_dnsResultMatch = $dnsResultMatch; - $this->_dnsRequestIf = get_failover_interface($dnsRequestIf); + $this->_dnsRequestIf = get_failover_interface($dnsRequestIf, $this->_useIPv6 ? 'inet6' : 'all'); if ($this->_dnsVerboseLog) { log_error("Dynamic DNS ({$this->_dnsHost}): running get_failover_interface for {$dnsRequestIf}. found {$this->_dnsRequestIf}"); }