mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Fixes access of possibly nil _SERVER in tracker.lua
This commit is contained in:
parent
139627bbe1
commit
bd004a43cd
1 changed files with 5 additions and 1 deletions
|
|
@ -22,7 +22,11 @@ function tracker.log(f_name, f_args)
|
|||
end
|
||||
|
||||
local ifid = stats.id
|
||||
local remote_addr = _SERVER["REMOTE_ADDR"]
|
||||
local remote_addr
|
||||
|
||||
if _SERVER then
|
||||
remote_addr = _SERVER["REMOTE_ADDR"]
|
||||
end
|
||||
|
||||
local jobj = {
|
||||
scope = 'function',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue