]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
I think useragent and referer logs should use the masked client address
authorwessels <>
Wed, 28 Aug 2002 10:44:52 +0000 (10:44 +0000)
committerwessels <>
Wed, 28 Aug 2002 10:44:52 +0000 (10:44 +0000)
(from client_netmask) like access.log, rather than the unmasked address.

src/client_side.cc

index c35e695d151e9e8643ab294ef2112ab57a2f53e8..b9c70ee0e00accce581bf657d20556b5bf71e654 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: client_side.cc,v 1.587 2002/08/24 01:59:51 hno Exp $
+ * $Id: client_side.cc,v 1.588 2002/08/28 04:44:52 wessels Exp $
  *
  * DEBUG: section 33    Client-side Routines
  * AUTHOR: Duane Wessels
@@ -986,11 +986,11 @@ clientInterpretRequestHeaders(clientHttpRequest * http)
     }
 #if USE_USERAGENT_LOG
     if ((str = httpHeaderGetStr(req_hdr, HDR_USER_AGENT)))
-       logUserAgent(fqdnFromAddr(http->conn->peer.sin_addr), str);
+       logUserAgent(fqdnFromAddr(http->conn->log_addr.sin_addr), str);
 #endif
 #if USE_REFERER_LOG
     if ((str = httpHeaderGetStr(req_hdr, HDR_REFERER)))
-       logReferer(fqdnFromAddr(http->conn->peer.sin_addr), str,
+       logReferer(fqdnFromAddr(http->conn->log_addr.sin_addr), str,
            http->log_uri);
 #endif
 #if FORW_VIA_DB