mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Added REMOTE_ADDR to _SERVER, recording address in alerts generated by the tracker, logging IP address from which password has been changed (#2554)
This commit is contained in:
parent
372cb9eefe
commit
7d3183e642
5 changed files with 14 additions and 5 deletions
|
|
@ -21,12 +21,14 @@ function tracker.log(f_name, f_args)
|
|||
end
|
||||
|
||||
local ifid = stats.id
|
||||
local remote_addr = _SERVER["REMOTE_ADDR"]
|
||||
|
||||
local jobj = {
|
||||
scope = 'function',
|
||||
name = f_name,
|
||||
params = f_args,
|
||||
ifid = ifid
|
||||
ifid = ifid,
|
||||
remote_addr = remote_addr
|
||||
}
|
||||
|
||||
local entity = alertEntity("user")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue