Commit 07032636 authored by Ted Trask's avatar Ted Trask

Put squark category into block reason

parent b6585d74
......@@ -514,6 +514,12 @@ local function checkwords(logentry)
end
end
--check for Squark category
if (logentry.squarkcategory and logentry.squarkcategory ~= "") then
logentry.reason = logentry.squarkcategory
logentry.shortreason = logentry.squarkcategory
end
for i,goodline in ipairs(goodwords) do
if not goodline then
break
......@@ -543,7 +549,7 @@ end
local function parsesquidlog(line)
-- Format of squid log (space separated):
-- time elapsed remotehost code/status bytes method URL rfc931 peerstatus/peerhost
-- time elapsed remotehost code/status bytes method URL rfc931 peerstatus/peerhost ? squarkcategory/squarkaction
local words = {}
for word in string.gmatch(line, "%S+") do
......
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