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) ...@@ -535,6 +535,7 @@ function system_routing_configure($interface = '', $verbose = false)
} }
} }
} }
if (!$foundgw) { if (!$foundgw) {
$defaultif = get_real_interface("wan"); $defaultif = get_real_interface("wan");
$interfacegw = "wan"; $interfacegw = "wan";
...@@ -631,7 +632,7 @@ function system_staticroutes_configure($interface = '') ...@@ -631,7 +632,7 @@ function system_staticroutes_configure($interface = '')
$interfacegw = $gateway['interface']; $interfacegw = $gateway['interface'];
$gatewayip = $gateway['gateway']; $gatewayip = $gateway['gateway'];
$fargw = isset($gateway['fargw']); $fargw = isset($gateway['fargw']) && $gateway['ipprotocol'] != 'inet6';
$blackhole = ''; $blackhole = '';
switch ($rtent['gateway']) { 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