mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 17:44:41 +00:00
Correct the omission of the prefix when a dynamic interface v6 dhcpdv6 address is set as a static entry. The result is that only the suffix /64 gets added to the unbound host entries. This patch should sort that so a full address is created for unbound.
use existing call update
This commit is contained in:
parent
4e3c6aa59b
commit
be12dd889f
@ -681,6 +681,13 @@ function unbound_add_host_entries()
|
||||
continue;
|
||||
}
|
||||
|
||||
// XXX - When using manual overide on dhcpd6 we need to get the prefix and marry it to the suffix
|
||||
// Get the prefix first.
|
||||
list ($ipaddrv6) = interfaces_primary_address6($dhcpif);
|
||||
if (!empty($ipaddrv6)) {
|
||||
$host['ipaddrv6'] = make_ipv6_64_address($ipaddrv6,$host['ipaddrv6']);
|
||||
}
|
||||
|
||||
$domain = $config['system']['domain'];
|
||||
// XXX: dhcpdv6 domain entries have been superseded by domainsearchlist,
|
||||
// for backward compatibilty support both here.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user