summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/inc/shaper.inc6
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())
OpenPOWER on IntegriCloud