mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-11-01 02:48:18 +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) {
|
if (list[mac].data.logoff) {
|
||||||
radius_terminate(interface, mac, radtc_logout);
|
radius_terminate(interface, mac, radtc_logout);
|
||||||
client_reset(interface, mac, 'logoff event');
|
client_remove(interface, mac, 'logoff event');
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (+list[mac].idle > +clients[interface][mac].idle) {
|
if (+list[mac].idle > +clients[interface][mac].idle) {
|
||||||
radius_terminate(interface, mac, radtc_idleto);
|
radius_terminate(interface, mac, radtc_idleto);
|
||||||
client_remove(interface, mac, 'idle event');
|
client_reset(interface, mac, 'idle event');
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
let timeout = +clients[interface][mac].session;
|
let timeout = +clients[interface][mac].session;
|
||||||
|
|||||||
Reference in New Issue
Block a user