mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
If the bandwidth value is coming from radius scale it up to the requested Kbit/s unit.
This commit is contained in:
parent
908cbaf91a
commit
2d4003aab1
@ -1659,8 +1659,8 @@ function portal_allow($clientip,$clientmac,$username,$password = null, $attribut
|
||||
*/
|
||||
$peruserbw = isset($config['captiveportal']['peruserbw']);
|
||||
|
||||
$bw_up = isset($attributes['bw_up']) ? trim($attributes['bw_up']) : $config['captiveportal']['bwdefaultup'];
|
||||
$bw_down = isset($attributes['bw_down']) ? trim($attributes['bw_down']) : $config['captiveportal']['bwdefaultdn'];
|
||||
$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'];
|
||||
|
||||
if ($passthrumac) {
|
||||
$mac = array();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user