Commit 68d16258 authored by Ted Trask's avatar Ted Trask

Fixed bug with no user authentication by removing bad check

parent 3c88c2d1
......@@ -559,7 +559,7 @@ local function parsesquidlog(line)
bytes=words[5],
method=words[6],
URL=words[7],
clientuserid=string.gsub(words[8],"%%(%x%x)",""),
clientuserid=words[8],
peerstatus=string.match(words[9] or "", "^[^/]*"),
peerhost=string.match(words[9] or "", "[^/]*$"),
squarkcategory=string.match(words[11] or "", "^[^,]*"),
......@@ -569,10 +569,8 @@ local function parsesquidlog(line)
-- Don't care about local requests (from DG) (this check also removes blank lines)
if logentry.clientip and logentry.clientip ~= "127.0.0.1" then
if logentry.clientuserid and logentry.clientuserid ~= "-" then
logentry.logdatetime = os.date("%Y-%m-%d %H:%M:%S", logentry.logdatetime)..string.match(logentry.logdatetime, "%..*")
return logentry
end
logentry.logdatetime = os.date("%Y-%m-%d %H:%M:%S", logentry.logdatetime)..string.match(logentry.logdatetime, "%..*")
return logentry
end
return nil
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment