Commit 95dd6ca9 authored by Franco Fichtner's avatar Franco Fichtner

system: avoid far gateway usage in IPv6 #1665

parent 59e2e527
......@@ -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']) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment