mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 03:16:12 +00:00
system: avoid far gateway usage in IPv6 #1665
This commit is contained in:
parent
59e2e5270c
commit
95dd6ca9e1
@ -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']) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user