mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-29 09:32:34 +00:00
uspot: accounting: remove on logoff, reset on idle
Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
This commit is contained in:
committed by
John Crispin
parent
a12f43e912
commit
16e06ad7aa
@@ -201,13 +201,13 @@ function accounting(interface) {
|
||||
|
||||
if (list[mac].data.logoff) {
|
||||
radius_terminate(interface, mac, radtc_logout);
|
||||
client_reset(interface, mac, 'logoff event');
|
||||
client_remove(interface, mac, 'logoff event');
|
||||
continue;
|
||||
}
|
||||
|
||||
if (+list[mac].idle > +clients[interface][mac].idle) {
|
||||
radius_terminate(interface, mac, radtc_idleto);
|
||||
client_remove(interface, mac, 'idle event');
|
||||
client_reset(interface, mac, 'idle event');
|
||||
continue;
|
||||
}
|
||||
let timeout = +clients[interface][mac].session;
|
||||
|
||||
Reference in New Issue
Block a user