diff --git a/includes/discovery/os/barracuda.inc.php b/includes/discovery/os/barracudaloadbalancer.inc.php similarity index 56% rename from includes/discovery/os/barracuda.inc.php rename to includes/discovery/os/barracudaloadbalancer.inc.php index 51341ef449..74c612bf64 100644 --- a/includes/discovery/os/barracuda.inc.php +++ b/includes/discovery/os/barracudaloadbalancer.inc.php @@ -10,14 +10,6 @@ * the source code distribution for details. */ -if (!$os) { - if (stristr($sysDescr, 'Barracuda Load Balancer') || stristr($sysDescr, 'Barracuda Load Balancer ADC')) { - $os = 'barracudaloadbalancer'; - } - if (stristr($sysDescr, 'Barracuda Spam Firewall')) { - $os = 'barracudaspamfirewall'; - } - if (stristr($sysDescr, 'Barracuda Firewall')) { - $os = 'barracudangfirewall'; - } +if (str_contains($sysDescr, array('Barracuda Load Balancer', 'Barracuda Load Balancer ADC'), true)) { + $os = 'barracudaloadbalancer'; } diff --git a/includes/discovery/os/barracudangfirewall.inc.php b/includes/discovery/os/barracudangfirewall.inc.php new file mode 100644 index 0000000000..0143cf6c70 --- /dev/null +++ b/includes/discovery/os/barracudangfirewall.inc.php @@ -0,0 +1,15 @@ + + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation, either version 3 of the License, or (at your + * option) any later version. Please see LICENSE.txt at the top level of + * the source code distribution for details. + */ + +if (str_contains($sysDescr, 'Barracuda Firewall', true)) { + $os = 'barracudangfirewall'; +} diff --git a/includes/discovery/os/barracudaspamfirewall.inc.php b/includes/discovery/os/barracudaspamfirewall.inc.php new file mode 100644 index 0000000000..d573c14d52 --- /dev/null +++ b/includes/discovery/os/barracudaspamfirewall.inc.php @@ -0,0 +1,15 @@ + + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation, either version 3 of the License, or (at your + * option) any later version. Please see LICENSE.txt at the top level of + * the source code distribution for details. + */ + +if (str_contains($sysDescr, 'Barracuda Spam Firewall', true)) { + $os = 'barracudaspamfirewall'; +} diff --git a/includes/discovery/os/bcm963.inc.php b/includes/discovery/os/bcm963.inc.php index 4113d29e01..2fb0e09914 100644 --- a/includes/discovery/os/bcm963.inc.php +++ b/includes/discovery/os/bcm963.inc.php @@ -1,7 +1,5 @@