mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-17 01:54:49 +00:00
shell: minor cleanup
This commit is contained in:
parent
52c1f005bf
commit
4e9c75240d
@ -65,7 +65,7 @@ function console_get_interface_from_ppp($realif)
|
||||
global $config;
|
||||
|
||||
if (isset($config['ppps']['ppp'])) {
|
||||
foreach ($config['ppps']['ppp'] as $pppid => $ppp) {
|
||||
foreach ($config['ppps']['ppp'] as $ppp) {
|
||||
if ($realif == $ppp['if']) {
|
||||
$ifaces = explode(',', $ppp['ports']);
|
||||
return $ifaces[0];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user