summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorsullrich <sullrich@pfsense.org>2009-11-27 16:24:46 -0500
committersullrich <sullrich@pfsense.org>2009-11-27 16:24:46 -0500
commit64fba8ec93fa47d284483e6da6a1989d6dd46ce6 (patch)
tree133d74487fe1123ef1d547354046f392ba776a94 /etc
parent4195c967cc25eefa2c1c5bc889788eacb4531fbd (diff)
downloadpfsense-64fba8ec93fa47d284483e6da6a1989d6dd46ce6.zip
pfsense-64fba8ec93fa47d284483e6da6a1989d6dd46ce6.tar.gz
Do not show LICENSE in the list of shaper patterns. Resolves #171
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/shaper.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/shaper.inc b/etc/inc/shaper.inc
index eac8783..fc6718c 100644
--- a/etc/inc/shaper.inc
+++ b/etc/inc/shaper.inc
@@ -3608,6 +3608,8 @@ function generate_protocols_array() {
$protocols = return_dir_as_array("/usr/local/share/protocols");
if(is_array($protocols)) {
foreach($protocols as $key => $proto) {
+ if($proto == "LICENSE")
+ continue;
if (strstr($proto, ".pat") != false)
$protocols[$key] =& str_replace(".pat", "", $proto);
}
OpenPOWER on IntegriCloud