mirror of
https://github.com/opnsense/core.git
synced 2026-02-18 18:18:13 -05:00
backend: typo in previous, let's avoid all $config if we can
This commit is contained in:
parent
b7166dc7ae
commit
81a0db2b45
1 changed files with 2 additions and 2 deletions
|
|
@ -46,9 +46,9 @@ if (!empty($a_hasync['disconnectppps'])) {
|
|||
|
||||
list ($vhid, $iface) = explode('@', $subsystem);
|
||||
|
||||
foreach ($config_read_array('ppps', 'ppp', false) as $ppp) {
|
||||
foreach (config_read_array('ppps', 'ppp', false) as $ppp) {
|
||||
if ($ppp['ports'] == $iface) {
|
||||
foreach($config['interfaces'] as $ifkey => $interface) {
|
||||
foreach (config_read_array('interfaces', false) as $ifkey => $interface) {
|
||||
if ($ppp['if'] == $interface['if']) {
|
||||
log_msg("{$iface} is connected to ppp interface {$ifkey} set new status {$type}");
|
||||
if ($type == 'BACKUP' || $type == 'INIT') {
|
||||
|
|
|
|||
Loading…
Reference in a new issue