summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2012-05-23 12:57:43 +0000
committerErmal <eri@pfsense.org>2012-05-23 12:57:43 +0000
commitc5b0298f87486120aea4be8a488819e3eb724731 (patch)
tree55d4d230f1b133b4d68ce952c4b2af65db8d74bc /etc/inc
parent6405333995acc0107254f9d8a16ffc427097253f (diff)
downloadpfsense-c5b0298f87486120aea4be8a488819e3eb724731.zip
pfsense-c5b0298f87486120aea4be8a488819e3eb724731.tar.gz
If specified use the default settings for bw limitation rather than 0
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/captiveportal.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc
index a9c981c..9045d9a 100644
--- a/etc/inc/captiveportal.inc
+++ b/etc/inc/captiveportal.inc
@@ -1684,8 +1684,8 @@ function captiveportal_reapply_attributes($cpentry, $attributes) {
*/
$peruserbw = isset($config['captiveportal']['peruserbw']);
- $bw_up = isset($attributes['bw_up']) ? round(intval($attributes['bw_up'])/1000, 2) : 0;
- $bw_down = isset($attributes['bw_down']) ? round(intval($attributes['bw_down'])/1000, 2) : 0;
+ $bw_up = isset($attributes['bw_up']) ? round(intval($attributes['bw_up'])/1000, 2) : $config['captiveportal'][$cpzone]['bwdefaultup'];
+ $bw_down = isset($attributes['bw_down']) ? round(intval($attributes['bw_down'])/1000, 2) : $config['captiveportal'][$cpzone]['bwdefaultdn'];
$bw_up_pipeno = $cpentry[1]+20000;
$bw_down_pipeno = $cpentry[1]+20001;
$commands = "";
OpenPOWER on IntegriCloud