diff --git a/src/etc/inc/interfaces.inc b/src/etc/inc/interfaces.inc index 343180525..f3e823be6 100644 --- a/src/etc/inc/interfaces.inc +++ b/src/etc/inc/interfaces.inc @@ -2738,7 +2738,8 @@ function interface_6rd_configure($interface = 'wan', $wancfg) file_put_contents("/tmp/{$stfiface}_routerv6", "{$rd6brgw}\n"); file_put_contents("/tmp/{$stfiface}_defaultgwv6", "{$rd6brgw}\n"); - $ip4gateway = get_interface_gateway($interface); + $gateways = new \OPNsense\Routing\Gateways(legacy_interfaces_details()); + $ip4gateway = $gateways->getInterfaceGateway($interface, "inet"); if (is_ipaddrv4($ip4gateway)) { system_host_route($wancfg['gateway-6rd'], $ip4gateway); }