From 219aec241cb0a93a02e4df98ef317a0233de8494 Mon Sep 17 00:00:00 2001 From: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com> Date: Thu, 22 Oct 2020 01:37:22 +0200 Subject: [PATCH] More generic match of GS1900 (#12246) --- includes/discovery/fdb-table/zynos.inc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/includes/discovery/fdb-table/zynos.inc.php b/includes/discovery/fdb-table/zynos.inc.php index 83413d8867..9c51a02088 100644 --- a/includes/discovery/fdb-table/zynos.inc.php +++ b/includes/discovery/fdb-table/zynos.inc.php @@ -13,8 +13,9 @@ * @author PipoCanaja */ -if (in_array($device['hardware'], ['GS1900-48', 'GS1900-24', 'GS1900-8'])) { - echo 'Zyxel GS1900 Q-BRIDGE:' . PHP_EOL; +if (in_array(explode('-', $device['hardware'], 2)[0], ['GS1900'])) { + //will match anything starting with GS1900 before the 1st dash (like GS1900-8, GS1900-24E etc etc) + echo 'Zyxel buggy Q-BRIDGE:' . PHP_EOL; // These devices do not provide a proper Q-BRIDGE reply (there is a ".6." index between VLAN and MAC) // .6...... // We need to manually handle this here