diff options
author | Renato Botelho <garga@FreeBSD.org> | 2013-01-17 16:56:27 -0200 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2013-01-17 16:56:27 -0200 |
commit | 20f5fce5e45a7356e53e9f206c88b7a7cd69da81 (patch) | |
tree | 0ea1ccdffd6df1afb35752b2cae58b0d4fdc0893 | |
parent | 5f921566499a3a11ac3ffd5ab74bb43c53c9ef7b (diff) | |
download | pfsense-20f5fce5e45a7356e53e9f206c88b7a7cd69da81.zip pfsense-20f5fce5e45a7356e53e9f206c88b7a7cd69da81.tar.gz |
Allow to edit default queue. Should fix #1995
-rw-r--r-- | etc/inc/shaper.inc | 2 |
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."); } |