diff options
author | Ermal <eri@pfsense.org> | 2012-05-23 12:58:35 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2012-05-23 12:58:35 +0000 |
commit | 8e53abfa0401c5c97df346ed55839c32807ac72f (patch) | |
tree | 6c77aa4dc0ffc1c6721cd39af7aeeae363c081fd /etc | |
parent | 3807002ce5ae75b75bd81df64ff5d26af7b338a4 (diff) | |
download | pfsense-8e53abfa0401c5c97df346ed55839c32807ac72f.zip pfsense-8e53abfa0401c5c97df346ed55839c32807ac72f.tar.gz |
If specified use the default settings for bw limitation rather than 0
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/captiveportal.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc index c69737f..ed180d1 100644 --- a/etc/inc/captiveportal.inc +++ b/etc/inc/captiveportal.inc @@ -1572,8 +1572,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']['bwdefaultup']; + $bw_down = isset($attributes['bw_down']) ? round(intval($attributes['bw_down'])/1000, 2) : $config['captiveportal']['bwdefaultdn']; $bw_up_pipeno = $cpentry[1]+20000; $bw_down_pipeno = $cpentry[1]+20001; $commands = ""; |