diff options
author | Renato Botelho <garga@FreeBSD.org> | 2013-01-17 17:00:03 -0200 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2013-01-17 17:00:03 -0200 |
commit | 473129bbc3ddcb6011f2dd9a736addabe1db8acc (patch) | |
tree | 5c1e3f19e7491e83466097be6e209e0369ed5c5b | |
parent | c1ce0c51601469af9b0996a9e446d43faf6a1b1a (diff) | |
download | pfsense-473129bbc3ddcb6011f2dd9a736addabe1db8acc.zip pfsense-473129bbc3ddcb6011f2dd9a736addabe1db8acc.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 dacdb7e..cec5157 100644 --- a/etc/inc/shaper.inc +++ b/etc/inc/shaper.inc @@ -985,7 +985,7 @@ class priq_queue { $input_errors[] = "Queue names must be alphanumeric and _ or - only."; if (!empty($data['name']) && !preg_match("/^[a-zA-Z0-9_-]*$/", $data['name'])) $input_errors[] = "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[] = "Only one default queue per interface is allowed."; } |