mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
dns/dyndns: $dnsRequestIf as gateway group cannot yield IP address
While here, patch up the missing IPv6 translation.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user