diff options
author | Ermal Luçi <eri@pfsense.org> | 2009-11-25 16:33:46 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2009-11-25 16:33:46 +0000 |
commit | 850cff07adac41c78a2cf7e91cec903496ae3d23 (patch) | |
tree | 00f0fc108976f769f7af2a38998433ab61dbb29d /etc | |
parent | e7bfa231022d005a5e2dc0751e067323124606f0 (diff) | |
download | pfsense-850cff07adac41c78a2cf7e91cec903496ae3d23.zip pfsense-850cff07adac41c78a2cf7e91cec903496ae3d23.tar.gz |
Resolves #171. Do not show the license file as a protocol list.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/shaper.inc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/etc/inc/shaper.inc b/etc/inc/shaper.inc index cd34841..eac8783 100644 --- a/etc/inc/shaper.inc +++ b/etc/inc/shaper.inc @@ -3607,8 +3607,10 @@ function layer7_start_l7daemon() { function generate_protocols_array() { $protocols = return_dir_as_array("/usr/local/share/protocols"); if(is_array($protocols)) { - foreach($protocols as $key => $proto) - $protocols[$key] =& str_replace(".pat", "", $proto); + foreach($protocols as $key => $proto) { + if (strstr($proto, ".pat") != false) + $protocols[$key] =& str_replace(".pat", "", $proto); + } sort($protocols); } return $protocols; |