mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
Added radius acconting (#7356)
This commit is contained in:
parent
1bf54e7ac2
commit
cb8d89d04f
4 changed files with 20 additions and 21 deletions
|
|
@ -92,7 +92,9 @@ for member, info in pairs(_POST["associations"] or {}) do
|
|||
elseif info["connectivity"] == "reject" then
|
||||
s:bind_member(member, host_pools.DEFAULT_POOL_ID)
|
||||
res["associations"][member]["status"] = "OK"
|
||||
interface.select(tostring(interface.getFirstInterfaceId()))
|
||||
radius_handler.accountingStop(member)
|
||||
interface.select("-1") -- System Interface
|
||||
else
|
||||
res["associations"][member]["status"] = "ERROR"
|
||||
res["associations"][member]["status_msg"] = "Unknown association: allowed associations are 'pass' and 'reject'"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue