mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Merge pull request #3906 from laf/issue-2223
This commit is contained in:
@@ -881,7 +881,7 @@ function is_port_valid($port, $device) {
|
||||
$fringe = array_merge($config['bad_if'],$config['os'][$device['os']]['bad_if']);
|
||||
}
|
||||
foreach ($fringe as $bi) {
|
||||
if (strstr($if, $bi)) {
|
||||
if (stristr($if, $bi)) {
|
||||
$valid = 0;
|
||||
d_echo("ignored : $bi : $if");
|
||||
}
|
||||
@@ -928,7 +928,7 @@ function is_port_valid($port, $device) {
|
||||
$fringe = array_merge($config['bad_iftype'],$config['os'][$device['os']]['bad_iftype']);
|
||||
}
|
||||
foreach ($fringe as $bi) {
|
||||
if (strstr($port['ifType'], $bi)) {
|
||||
if (stristr($port['ifType'], $bi)) {
|
||||
$valid = 0;
|
||||
d_echo("ignored ifType : ".$port['ifType']." (matched: ".$bi." )");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user