--------------------- PatchSet 327 Date: 2002/12/12 07:45:53 Author: apbarrett Branch: follow_xff Tag: (none) Log: Clarify a comment. Members: src/client_side.cc:1.12.2.2->1.12.2.3 Index: squid3/src/client_side.cc =================================================================== RCS file: /cvsroot/squid-sf//squid3/src/client_side.cc,v retrieving revision 1.12.2.2 retrieving revision 1.12.2.3 diff -u -r1.12.2.2 -r1.12.2.3 --- squid3/src/client_side.cc 9 Dec 2002 18:06:26 -0000 1.12.2.2 +++ squid3/src/client_side.cc 12 Dec 2002 07:45:53 -0000 1.12.2.3 @@ -1,6 +1,6 @@ /* - * $Id: client_side.cc,v 1.12.2.2 2002/12/09 18:06:26 apbarrett Exp $ + * $Id: client_side.cc,v 1.12.2.3 2002/12/12 07:45:53 apbarrett Exp $ * * DEBUG: section 33 Client-side Routines * AUTHOR: Duane Wessels @@ -1777,11 +1777,15 @@ { ConnStateData *result = cbdataAlloc(ConnStateData); result->peer = *peer; - result->log_addr = peer->sin_addr; #if FOLLOW_X_FORWARDED_FOR - /* log_addr might be changed later if the log_uses_indirect_client - * option is set. */ + /* + * log_addr is set from the peer's IP address, somewhat anonymised + * using the client_netmask. If log_uses_indirect_client is on, + * then X-Forwarded-For headers might cause log_addr to be changed + * later. + */ #endif /* FOLLOW_X_FORWARDED_FOR */ + result->log_addr = peer->sin_addr; result->log_addr.s_addr &= Config.Addrs.client_netmask.s_addr; result->me = *me; result->fd = fd;