dns/dyndns: $dnsRequestIf as gateway group cannot yield IP address

While here, patch up the missing IPv6 translation.
This commit is contained in:
Franco Fichtner
2020-01-03 13:28:14 +01:00
parent ab0ccc3be9
commit 48888583b0
@@ -295,7 +295,7 @@ class updatedns
if ($this->_dnsVerboseLog) {
log_error("Dynamic DNS ({$this->_dnsHost}): running dyndns_failover_interface for {$dnsRequestIf}. found {$this->_dnsRequestIf}");
}
$this->_dnsRequestIfIP = get_interface_ip($dnsRequestIf);
$this->_dnsRequestIfIP = $this->_useIPv6 ? get_interface_ipv6($this->_dnsRequestIf) : get_interface_ip($this->_dnsRequestIf);
$this->_dnsMaxCacheAgeDays = 25;
$this->_dnsDummyUpdateDone = false;
$this->_forceUpdateNeeded = $forceUpdate;