diff options
author | Scott Ullrich <sullrich@G5.local> | 2009-10-25 22:26:00 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@G5.local> | 2009-10-25 22:26:00 -0400 |
commit | b8103b0691694b97d3dc41ba5903a7fdbb6d3594 (patch) | |
tree | 6b1fa909806486baaa2255cd54879891984a7410 | |
parent | 2a1226ad9b61c8449ad9f1b390dc855a8adc0347 (diff) | |
download | pfsense-b8103b0691694b97d3dc41ba5903a7fdbb6d3594.zip pfsense-b8103b0691694b97d3dc41ba5903a7fdbb6d3594.tar.gz |
Return up instead of running
-rw-r--r-- | etc/inc/pfsense-utils.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index dc03381..35cefab 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -1156,7 +1156,7 @@ function get_interface_info($ifdescr) { $ifinfo['status'] = "up"; else $ifinfo['status'] = "down"; - + if (preg_match("/^enc|^tun|^ppp|^pptp|^ovpn/i", $ifinfo['if'])) { $ifinfo['inpkts'] = $linkinfo[3]; $ifinfo['outpkts'] = $linkinfo[6]; @@ -1285,6 +1285,8 @@ function get_interface_info($ifdescr) { if (preg_match("/status: (.*)$/", $ici, $matches)) { if ($matches[1] != "active") $ifinfo['status'] = $matches[1]; + if($ifinfo['status'] == "running") + $ifinfo['status'] = "up"; } if (preg_match("/channel (\S*)/", $ici, $matches)) { $ifinfo['channel'] = $matches[1]; |