diff options
author | Ermal Luçi <eri@pfsense.org> | 2009-11-10 11:40:54 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2009-11-10 11:40:54 +0000 |
commit | 51b14faaa149524ea71d92f091ed189419734c78 (patch) | |
tree | 98b8ed0525a879ae0a4fa8ff0d91153a7a101755 /etc/inc/shaper.inc | |
parent | 21d40ff93db15448b85e9f9744f087bcb0db6d2b (diff) | |
download | pfsense-51b14faaa149524ea71d92f091ed189419734c78.zip pfsense-51b14faaa149524ea71d92f091ed189419734c78.tar.gz |
Do not 'spam' a new ipfw-classifyd for each save. If we hit save for an existing configuration(did changes to existing one) just tell ipfw-classifyd to reload the config.
Diffstat (limited to 'etc/inc/shaper.inc')
-rw-r--r-- | etc/inc/shaper.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/shaper.inc b/etc/inc/shaper.inc index 2de44aa..b56d806 100644 --- a/etc/inc/shaper.inc +++ b/etc/inc/shaper.inc @@ -3277,7 +3277,7 @@ class layer7 { //Add a tuple (rule,sctructure,element) to the $rsets function add_rule($l7set) { - $this->rsets[] = $l7set; + $this->rsets[] = $l7set; } // Build the layer7 rules @@ -3302,6 +3302,7 @@ class layer7 { $rsets = $q['l7rules']; //Put individual rules in the array if(is_array($rsets)) { + $this->rsets = array(); // XXX: ugly hack foreach($rsets as $l7r) { $l7obj = new l7rule(); $l7obj->SetRProtocol($l7r['protocol']); |