From 70b49cba96706753a7c1bc4a1166f9744a080352 Mon Sep 17 00:00:00 2001 From: Ermal Date: Tue, 18 Feb 2014 09:25:41 +0000 Subject: Really need the interface where v6 is running toa dd the gateway/route rather than the one used for the configuration. This Fixes #3357 --- etc/inc/system.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'etc') diff --git a/etc/inc/system.inc b/etc/inc/system.inc index b2d7309..a456070 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -401,7 +401,7 @@ function system_routing_configure($interface = "") { $gatewayipv6 = $gateway['gateway']; $interfacegwv6 = $gateway['interface']; if (!empty($gateway['interface'])) { - $defaultifv6 = get_real_interface($gateway['interface'], "inet6"); + $defaultifv6 = get_real_interface($gateway['interface']); if ($defaultifv6) @file_put_contents("{$g['tmp_path']}/{$defaultifv6}_defaultgwv6", $gateway['gateway']); } @@ -419,7 +419,7 @@ function system_routing_configure($interface = "") { @touch("{$g['tmp_path']}/{$defaultif}_defaultgw"); } if ($foundgwv6 == false) { - $defaultifv6 = get_real_interface("wan", "inet6"); + $defaultifv6 = get_real_interface("wan"); $interfacegwv6 = "wan"; $gatewayipv6 = get_interface_gateway_v6("wan"); @touch("{$g['tmp_path']}/{$defaultif}_defaultgwv6"); -- cgit v1.1