Skip to content

Commit

Permalink
Removed debug logging; Added reversion back to IP-based squidGuard ch…
Browse files Browse the repository at this point in the history
…ecks if no username is present
  • Loading branch information
liveaverage committed Aug 7, 2013
1 parent 036bd80 commit 3a4f89b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions squidguard.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,10 @@ int squidguard_backend_uid(FILE *sg_fd[2], char srcip[15], char srcusr[URL_SIZE]
//Check username length; if there's nothing there, use the IP only:
if (strlen(srcusr) < 1)
{
syslog(LOG_INFO, "squidguard input: username missing, defaulting to IP notation: %s %s/ - - GET\n", url, srcip);
fprintf(sg_fd[1], "%s %s/ - - GET\n", url, srcip);
}
else
{
syslog(LOG_INFO, "squidguard input: %s %s/ %s - GET\n", url, srcip, srcusr);
fprintf(sg_fd[1], "%s %s/ %s - GET\n", url, srcip, srcusr);
}

Expand Down

0 comments on commit 3a4f89b

Please sign in to comment.