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:
Franco Fichtner 2021-07-02 15:59:26 +02:00
parent ba70f141e6
commit efe7114daf

View File

@ -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']);
}