From: wessels <> Date: Wed, 28 Aug 2002 10:44:52 +0000 (+0000) Subject: I think useragent and referer logs should use the masked client address X-Git-Tag: SQUID_3_0_PRE1~814 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ec04b39f69b082dfb52dbce638d5acd297b3660a;p=thirdparty%2Fsquid.git I think useragent and referer logs should use the masked client address (from client_netmask) like access.log, rather than the unmasked address. --- diff --git a/src/client_side.cc b/src/client_side.cc index c35e695d15..b9c70ee0e0 100644 --- a/src/client_side.cc +++ b/src/client_side.cc @@ -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