interfaces: minor simplification

This commit is contained in:
Franco Fichtner 2023-01-16 10:00:38 +01:00
parent 1febdd9f88
commit 88e97fe7e1

View File

@ -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';
}