uspot: accounting: use provided nas_port_type

Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
This commit is contained in:
Thibaut VARÈNE
2023-05-25 19:00:54 +02:00
committed by John Crispin
parent 21d79d1a9e
commit c9b2877de1

View File

@@ -59,7 +59,7 @@ function radius_init(interface, mac, payload) {
if (mac) {
// dealing with client accounting
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])
payload[key] = client.radius[key];
}