More generic match of GS1900 (#12246)

This commit is contained in:
PipoCanaja
2020-10-22 01:37:22 +02:00
committed by GitHub
parent b765b250c9
commit 219aec241c
+3 -2
View File
@@ -13,8 +13,9 @@
* @author PipoCanaja <pipocanaja@gmail.com> * @author PipoCanaja <pipocanaja@gmail.com>
*/ */
if (in_array($device['hardware'], ['GS1900-48', 'GS1900-24', 'GS1900-8'])) { if (in_array(explode('-', $device['hardware'], 2)[0], ['GS1900'])) {
echo 'Zyxel GS1900 Q-BRIDGE:' . PHP_EOL; //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) // These devices do not provide a proper Q-BRIDGE reply (there is a ".6." index between VLAN and MAC)
// <vlanid>.6.<mac1>.<mac2>.<mac3>.<mac4>.<mac5>.<mac6> // <vlanid>.6.<mac1>.<mac2>.<mac3>.<mac4>.<mac5>.<mac6>
// We need to manually handle this here // We need to manually handle this here