Fixes access of possibly nil _SERVER in tracker.lua

This commit is contained in:
Simone Mainardi 2019-07-01 17:29:17 +02:00
parent 139627bbe1
commit bd004a43cd

View file

@ -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',