From 95dd6ca9e11133ee4ffb25792d242299b19328e9 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Wed, 31 May 2017 09:02:49 +0200 Subject: [PATCH] system: avoid far gateway usage in IPv6 #1665 --- src/etc/inc/system.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/etc/inc/system.inc b/src/etc/inc/system.inc index e5d4400fb..b72ce4dd3 100644 --- a/src/etc/inc/system.inc +++ b/src/etc/inc/system.inc @@ -535,6 +535,7 @@ function system_routing_configure($interface = '', $verbose = false) } } } + if (!$foundgw) { $defaultif = get_real_interface("wan"); $interfacegw = "wan"; @@ -631,7 +632,7 @@ function system_staticroutes_configure($interface = '') $interfacegw = $gateway['interface']; $gatewayip = $gateway['gateway']; - $fargw = isset($gateway['fargw']); + $fargw = isset($gateway['fargw']) && $gateway['ipprotocol'] != 'inet6'; $blackhole = ''; switch ($rtent['gateway']) {