mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 00:54:41 +00:00
interfaces: audit current changes #5987
Two things here: use the actual device name ('if' key) and repair
long broken opt code mismatching on index (there is no opt0).
This commit is contained in:
parent
31aa573f4e
commit
ac2fb5654f
@ -405,7 +405,7 @@ EOD;
|
||||
$config['nat']['outbound']['mode'] = 'automatic';
|
||||
}
|
||||
|
||||
if (in_array($lanif, $iflist_wlan)) {
|
||||
if (in_array($config['interfaces']['lan']['if'], $iflist_wlan)) {
|
||||
config_read_array('interfaces', 'lan', 'wireless');
|
||||
$config['interfaces']['lan']['if'] .= '_wlan0';
|
||||
} elseif (isset($config['interfaces']['lan']['wireless'])) {
|
||||
@ -441,7 +441,7 @@ EOD;
|
||||
$config['interfaces']['wan']['blockpriv'] = true;
|
||||
}
|
||||
|
||||
if (in_array($wanif, $iflist_wlan)) {
|
||||
if (in_array($config['interfaces']['wan']['if'], $iflist_wlan)) {
|
||||
config_read_array('interfaces', 'wan', 'wireless');
|
||||
$config['interfaces']['wan']['if'] .= '_wlan0';
|
||||
} elseif (isset($config['interfaces']['wan']['wireless'])) {
|
||||
@ -457,7 +457,7 @@ EOD;
|
||||
config_read_array('interfaces', 'opt' . ($i + 1));
|
||||
$config['interfaces']['opt' . ($i + 1)]['if'] = $optif[$i];
|
||||
|
||||
if (in_array($optif[$i], $iflist_wlan)) {
|
||||
if (in_array($config['interfaces']['opt' . ($i + 1)]['if'], $iflist_wlan)) {
|
||||
config_read_array('interfaces', 'opt' . ($i + 1), 'wireless');
|
||||
$config['interfaces']['opt' . ($i + 1)]['if'] .= '_wlan0';
|
||||
} elseif (isset($config['interfaces']['opt' . ($i + 1)]['wireless'])) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user