mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 08:09:41 +00:00
interfaces: drop PPP default route handling
the relevant route is configured later in the chain using getDefaultGW(), no need to instruct mpd5 to set it for us.
This commit is contained in:
parent
42cfb664f7
commit
7a2f3f62d9
@ -1019,23 +1019,7 @@ default:
|
||||
set iface name {$ifcfg['if']}
|
||||
|
||||
EOD;
|
||||
$setdefaultgw = false;
|
||||
$founddefaultgw = false;
|
||||
if (isset($config['gateways']['gateway_item'])) {
|
||||
foreach ($config['gateways']['gateway_item'] as $gateway) {
|
||||
if ($interface == $gateway['interface'] && isset($gateway['defaultgw'])) {
|
||||
$setdefaultgw = true;
|
||||
break;
|
||||
} elseif (isset($gateway['defaultgw']) && !empty($gateway['interface'])) {
|
||||
$founddefaultgw = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!$founddefaultgw || $setdefaultgw) {
|
||||
$mpdconf .= " set iface route default\n";
|
||||
}
|
||||
if (isset($ppp['ondemand'])) {
|
||||
$mpdconf .= " set iface enable on-demand\n";
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user