summaryrefslogtreecommitdiffstats
path: root/etc/inc/filter.inc
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-06-24 12:00:19 -0300
committerRenato Botelho <garga@FreeBSD.org>2014-06-24 12:00:19 -0300
commitc15b5ed8d8830aa4a59343a8a7df311572b06911 (patch)
treef11fa1aa4b4e93958ad61977c67577cb6546a993 /etc/inc/filter.inc
parent6c87714dc7cd310592dc0134894813b6af6a1b7d (diff)
downloadpfsense-c15b5ed8d8830aa4a59343a8a7df311572b06911.zip
pfsense-c15b5ed8d8830aa4a59343a8a7df311572b06911.tar.gz
Fix dscp values and provide a config upgrade to fix values stored in config.xml. This is a proper fix for #3688
Diffstat (limited to 'etc/inc/filter.inc')
-rw-r--r--etc/inc/filter.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index dda8765..3619bda 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -2399,7 +2399,7 @@ function filter_generate_user_rule($rule) {
case 'cs5': $aline['dscp'] = " dscp 40 "; break;
case 'cs6': $aline['dscp'] = " dscp 48 "; break;
case 'cs7': $aline['dscp'] = " dscp 56 "; break;
- default: $aline['dscp'] = " dscp " . preg_replace('/\s.*$/', '', $rule['dscp']) . " "; break;
+ default: $aline['dscp'] = " dscp " . $rule['dscp'] . " "; break;
}
}
if (!empty($rule['vlanprio']) && ($rule['vlanprio'] != "none"))
OpenPOWER on IntegriCloud