From 88e97fe7e16a883d605bf2002d29cda5b59dad79 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Mon, 16 Jan 2023 10:00:38 +0100 Subject: [PATCH] interfaces: minor simplification --- src/etc/inc/interfaces.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/etc/inc/interfaces.inc b/src/etc/inc/interfaces.inc index 8ffb7aaac..674534101 100644 --- a/src/etc/inc/interfaces.inc +++ b/src/etc/inc/interfaces.inc @@ -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'; }