mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-11-02 19:37:51 +00:00
uspot: accounting: use provided nas_port_type
Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
This commit is contained in:
committed by
John Crispin
parent
21d79d1a9e
commit
c9b2877de1
@@ -59,7 +59,7 @@ function radius_init(interface, mac, payload) {
|
|||||||
if (mac) {
|
if (mac) {
|
||||||
// dealing with client accounting
|
// dealing with client accounting
|
||||||
let client = interfaces[interface].clients[mac];
|
let client = interfaces[interface].clients[mac];
|
||||||
for (let key in [ 'acct_session', 'client_ip', 'called_station', 'calling_station', 'nas_ip', 'username', 'location_name' ])
|
for (let key in [ 'acct_session', 'client_ip', 'called_station', 'calling_station', 'nas_ip', 'nas_port_type', 'username', 'location_name' ])
|
||||||
if (client.radius[key])
|
if (client.radius[key])
|
||||||
payload[key] = client.radius[key];
|
payload[key] = client.radius[key];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user