mirror of
https://github.com/lucaspalomodevelop/opnsense-core.git
synced 2026-03-13 08:09:42 +00:00
interfaces: minor simplification
This commit is contained in:
parent
1febdd9f88
commit
88e97fe7e1
@ -3462,7 +3462,7 @@ function get_real_interface($interface = 'wan', $family = 'all')
|
||||
/* set default for IPv4 and IPv6 lookups */
|
||||
$realif = $cfg['if'];
|
||||
|
||||
if (isset($cfg['wireless']) && !strstr($cfg['if'], '_wlan')) {
|
||||
if (isset($cfg['wireless']) && !strstr($realif, '_wlan')) {
|
||||
$realif .= '_wlan0';
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user