From 2011da3800a38022757c1199f64eb22bf0c5cd0e Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Sat, 13 Apr 2019 17:16:22 +0200 Subject: [PATCH] Routing, gateways. replace get_interface_gateway() in interface_6rd_configure() for https://github.com/opnsense/core/issues/2279 --- src/etc/inc/interfaces.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); }