summaryrefslogtreecommitdiffstats
path: root/etc/inc/shaper.inc
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-01-17 16:56:27 -0200
committerRenato Botelho <garga@FreeBSD.org>2013-01-17 16:56:27 -0200
commit20f5fce5e45a7356e53e9f206c88b7a7cd69da81 (patch)
tree0ea1ccdffd6df1afb35752b2cae58b0d4fdc0893 /etc/inc/shaper.inc
parent5f921566499a3a11ac3ffd5ab74bb43c53c9ef7b (diff)
downloadpfsense-20f5fce5e45a7356e53e9f206c88b7a7cd69da81.zip
pfsense-20f5fce5e45a7356e53e9f206c88b7a7cd69da81.tar.gz
Allow to edit default queue. Should fix #1995
Diffstat (limited to 'etc/inc/shaper.inc')
-rw-r--r--etc/inc/shaper.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/shaper.inc b/etc/inc/shaper.inc
index 835214b..9deeabb 100644
--- a/etc/inc/shaper.inc
+++ b/etc/inc/shaper.inc
@@ -986,7 +986,7 @@ class priq_queue {
$input_errors[] = gettext("Queue names must be alphanumeric and _ or - only.");
if (!empty($data['name']) && !preg_match("/^[a-zA-Z0-9_-]*$/", $data['name']))
$input_errors[] = gettext("Queue names must be alphanumeric and _ or - only.");
- if (!empty($data['default']) && altq_get_default_queue($data['interface']))
+ if (!empty($data['default']) && altq_get_default_queue($data['interface']) && ($data['name'] != $this->GetQName()))
$input_errors[] = gettext("Only one default queue per interface is allowed.");
}
OpenPOWER on IntegriCloud