mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 16:14:40 +00:00
dhcpd: do not merge non-explicit suffix addresses #5078
As a rule of thumb only react on ^:: addresses to avoid merging them with the globally unqiue prefix of the interface.
This commit is contained in:
parent
ba70f141e6
commit
efe7114daf
@ -1910,8 +1910,8 @@ function dhcpd_staticmap($domain_fallback = 'not.found', $ifconfig_details = nul
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!empty($ipaddrv6)) {
|
||||
/* expand IPv6 suffix address */
|
||||
if (!empty($ipaddrv6) && strpos($host['ipaddrv6'], '::') === 0) {
|
||||
/* expand IPv6 suffix address, but only allow user-given compressed suffix */
|
||||
$host['ipaddrv6'] = make_ipv6_64_address($ipaddrv6, $host['ipaddrv6']);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user