diff options
author | Ermal <eri@pfsense.org> | 2012-05-23 12:59:24 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2012-05-23 12:59:24 +0000 |
commit | bf58398ce6c3710e8404a207e359bad9ec690df0 (patch) | |
tree | 1189059f990ba8bd7bafe7b7fbc452dcfa113459 /etc | |
parent | c5b0298f87486120aea4be8a488819e3eb724731 (diff) | |
download | pfsense-bf58398ce6c3710e8404a207e359bad9ec690df0.zip pfsense-bf58398ce6c3710e8404a207e359bad9ec690df0.tar.gz |
Specify correct attribute where to read the setting from.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/captiveportal.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc index 9045d9a..2436695 100644 --- a/etc/inc/captiveportal.inc +++ b/etc/inc/captiveportal.inc @@ -1682,7 +1682,7 @@ function captiveportal_reapply_attributes($cpentry, $attributes) { * We don't need to add extra rules since traffic will pass due to the following kernel option * net.inet.ip.fw.one_pass: 1 */ - $peruserbw = isset($config['captiveportal']['peruserbw']); + $peruserbw = isset($config['captiveportal'][$cpzone]['peruserbw']); $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']; |