diff options
author | Ermal Luçi <eri@pfsense.org> | 2008-07-18 16:46:43 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2008-07-18 16:46:43 +0000 |
commit | 8cb1c6e3a2f776800548e6e6359e9c8ee2ce7b2c (patch) | |
tree | f6eff6f97582cf7c3782dadecf65136a0dd0c640 | |
parent | 7807634c5b51efb6680dda6fc04983ea77ee8f97 (diff) | |
download | pfsense-8cb1c6e3a2f776800548e6e6359e9c8ee2ce7b2c.zip pfsense-8cb1c6e3a2f776800548e6e6359e9c8ee2ce7b2c.tar.gz |
Do not create pipe/queue if it is disabled by the user.
-rw-r--r-- | etc/inc/shaper.inc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/inc/shaper.inc b/etc/inc/shaper.inc index 23730fe..f661bb3 100644 --- a/etc/inc/shaper.inc +++ b/etc/inc/shaper.inc @@ -2642,6 +2642,9 @@ class dnpipe_class extends dummynet_class { } function build_rules() { + if ($this->GetEnabled() == "") + return; + $pfq_rule = "\ndnpipe ". $this->GetNumber(); if ($this->GetBandwidth() && $this->GetBwscale()) $pfq_rule .= " bandwidth ".trim($this->GetBandwidth()).$this->GetBwscale(); @@ -2887,6 +2890,9 @@ class dnqueue_class extends dummynet_class { } function build_rules() { + if ($this->GetEnabled() == "") + return; + $parent =& $this->GetParent(); $pfq_rule = "dnqueue ". $this->GetNumber() . " dnpipe " . $parent->GetNumber(); if ($this->GetQlimit()) |