system: avoid far gateway usage in IPv6 #1665

This commit is contained in:
Franco Fichtner 2017-05-31 09:02:49 +02:00
parent 59e2e5270c
commit 95dd6ca9e1

View File

@ -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']) {