mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-12-18 01:41:24 +00:00
uspot: Session-Timeout AVP was not correctly honoured
Fixes: WIFI-10663 Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
parent
a542660072
commit
0bb8d0dcc0
@ -32,8 +32,8 @@ function get_idle_timeout(mac) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function get_session_timeout(mac) {
|
function get_session_timeout(mac) {
|
||||||
if (clients[mac]?.session_timeout)
|
if (clients[mac]?.session)
|
||||||
return clients[mac].session_timeout;
|
return clients[mac].session;
|
||||||
return session_timeout;
|
return session_timeout;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -154,6 +154,7 @@ function client_add(mac, state) {
|
|||||||
clients[mac] = {
|
clients[mac] = {
|
||||||
accounting,
|
accounting,
|
||||||
interval,
|
interval,
|
||||||
|
session,
|
||||||
idle,
|
idle,
|
||||||
};
|
};
|
||||||
if (state.data?.radius?.request)
|
if (state.data?.radius?.request)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user