mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Correctly match the interface to the state
This commit is contained in:
parent
0529547cf6
commit
bf875fa977
@ -234,7 +234,7 @@ function get_interface_info($ifdescr) {
|
||||
$int = convert_friendly_interface_to_real_interface_name($ifdescr);
|
||||
$bridge = link_int_to_bridge_interface($int);
|
||||
if($bridge) {
|
||||
$bridge_text = `/sbin/ifconfig {$bridge}`;
|
||||
$bridge_text = `/sbin/ifconfig {$bridge} | grep \"$int\"`;
|
||||
if(stristr($bridge_text, "blocking") <> false) {
|
||||
$ifinfo['bridge'] = "<b><font color='red'>blocking</font></b> - check for ethernet loops";
|
||||
$ifinfo['bridgeint'] = $bridge;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user