Merge pull request #3906 from laf/issue-2223

This commit is contained in:
Søren Rosiak
2016-07-31 01:36:01 +02:00
committed by GitHub
co-authored by GitHub
+2 -2
View File
@@ -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." )");
}