mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Fixes radius accounting update not working when stopping
This commit is contained in:
parent
3179d0bb2f
commit
d1317d84ee
6 changed files with 52 additions and 20 deletions
|
|
@ -96,7 +96,8 @@ for member, info in pairs(_POST["associations"] or {}) do
|
|||
s:bind_member(member, host_pools.DEFAULT_POOL_ID)
|
||||
res["associations"][member]["status"] = "OK"
|
||||
interface.select(tostring(interface.getFirstInterfaceId()))
|
||||
radius_handler.accountingStop(member, terminate_cause)
|
||||
local mac_info = interface.getMacInfo(member)
|
||||
radius_handler.accountingStop(member, terminate_cause, mac_info)
|
||||
interface.select("-1") -- System Interface
|
||||
else
|
||||
res["associations"][member]["status"] = "ERROR"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue