Revision 15527c00
Added by Ermal Luçi almost 16 years ago
usr/local/captiveportal/radius_accounting.inc | ||
---|---|---|
54 | 54 |
$retvalue = array(); |
55 | 55 |
$nas_mac = mac_format(get_interface_mac($config['interfaces']['wan']['if'])); |
56 | 56 |
$clientmac = mac_format($clientmac); |
57 |
$nas_port = $ruleno - 10000;
|
|
57 |
$nas_port = $ruleno; |
|
58 | 58 |
$radiusvendor = $config['captiveportal']['radiusvendor'] ? $config['captiveportal']['radiusvendor'] : null; |
59 | 59 |
|
60 | 60 |
switch($radiusvendor) { |
... | ... | |
157 | 157 |
$retvalue = array(); |
158 | 158 |
$nas_mac = mac_format(get_interface_mac($config['interfaces']['wan']['if'])); |
159 | 159 |
$clientmac = mac_format($clientmac); |
160 |
$nas_port = $ruleno - 10000;
|
|
160 |
$nas_port = $ruleno; |
|
161 | 161 |
$radiusvendor = $config['captiveportal']['radiusvendor'] ? $config['captiveportal']['radiusvendor'] : null; |
162 | 162 |
$stop_time = (empty($stop_time)) ? time() : $stop_time; |
163 | 163 |
$session_time = $stop_time - $start_time; |
Also available in: Unified diff
Prevent negative RADIUS_NAS_PORT attribute. Before this was a hack made in m0n0 but which is not anymore valid in pfSense.