dhcp: allow radvd to use /128 CARP VIP as source

The check is for the subnet use, not the CARP source check in
between.

PR: https://forum.opnsense.org/index.php?topic=44634.0
This commit is contained in:
Franco Fichtner 2024-12-13 15:17:54 +01:00
parent c92114e44b
commit c7036be53c

View File

@ -251,7 +251,7 @@ function dhcpd_radvd_configure($verbose = false, $blacklist = [])
}
foreach (config_read_array('virtualip', 'vip') as $vip) {
if ($vip['interface'] != $dhcpv6if || !is_ipaddrv6($vip['subnet']) || $vip['subnet_bits'] == '128') {
if ($vip['interface'] != $dhcpv6if || !is_ipaddrv6($vip['subnet'])) {
continue;
}
@ -263,7 +263,7 @@ function dhcpd_radvd_configure($verbose = false, $blacklist = [])
continue;
}
if (!empty($vip['nobind'])) {
if ($vip['subnet_bits'] == '128' || !empty($vip['nobind'])) {
continue;
}