mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Possible fix for Radius accounting issue
This commit is contained in:
parent
db3c150c7f
commit
7bb202027e
2 changed files with 5 additions and 4 deletions
|
|
@ -28,6 +28,7 @@ function radius_handler.accountingStart(name, username, password)
|
|||
local session_id = tostring(math.random(100000000000000000, 999999999999999999))
|
||||
local accounting_started = interface.radiusAccountingStart(username --[[ Username ]], name --[[ MAC Address ]], session_id)
|
||||
|
||||
tprint("Accounting Started for user: " .. username .. ", " .. ternary(accounting_started, "OK", "Error"))
|
||||
if accounting_started then
|
||||
local json = require("dkjson")
|
||||
local key = string.format(redis_accounting_key, name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue