interfaces: 6RD/6to4 route creation should be limited to IPv6

This commit is contained in:
Franco Fichtner 2024-09-12 22:15:07 +02:00
parent a85bd197c2
commit 0d951209e5

View File

@ -84,11 +84,11 @@ $gififs = link_interface_to_gif($interface, true, 4);
switch (isset($config['system']['ipv6allow']) ? ($config['interfaces'][$interface]['ipaddrv6'] ?? 'none') : 'none') {
case '6to4':
interface_6to4_configure($interface, $config['interfaces'][$interface], true);
system_routing_configure(false, $interface); /* XXX interface recreation breaks attached routes */
system_routing_configure(false, $interface, true, 'inet6'); /* interface recreation breaks attached routes */
break;
case '6rd':
interface_6rd_configure($interface, $config['interfaces'][$interface], true);
system_routing_configure(false, $interface); /* XXX interface recreation breaks attached routes */
system_routing_configure(false, $interface, true, 'inet6'); /* interface recreation breaks attached routes */
break;
default:
break;