From a74ae3ab4fbb28091e252f2cfd1c54281a881d1e Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Sat, 16 Mar 2019 14:30:53 +0100 Subject: [PATCH] interfaces: take all unknown arguments as real interfaces; closes #3342 --- src/etc/inc/interfaces.inc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/etc/inc/interfaces.inc b/src/etc/inc/interfaces.inc index 5184e51c5..0f12daff0 100644 --- a/src/etc/inc/interfaces.inc +++ b/src/etc/inc/interfaces.inc @@ -4570,10 +4570,6 @@ function interfaces_addresses($interfaces) } foreach ($interfaces as $interface) { - if ($interface == 'lo0') { - $realifs[] = 'lo0'; - } - if (isset($config['interfaces'][$interface])) { foreach (array('all', 'inet6') as $family) { $realif = get_real_interface($interface, $family); @@ -4581,6 +4577,9 @@ function interfaces_addresses($interfaces) $realifs[] = $realif; } } + } else { + /* take interfaces as is */ + $realifs[] = $interface; } }