From: Henrik Nordstrom Date: Thu, 14 Aug 2008 19:28:51 +0000 (+0200) Subject: Bug #2437: peer name not logged in access.log like expected, instead the ip address... X-Git-Tag: SQUID_3_1_0_1~49^2~83 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed9f056ad439d787486a3d5cd146acbd2e0a8240;p=thirdparty%2Fsquid.git Bug #2437: peer name not logged in access.log like expected, instead the ip address is logged The hierarchy field in access.log should log the peer name, not the hostname/ipaddress. This is a regression from 2.6. --- diff --git a/src/forward.cc b/src/forward.cc index 8d61c4dca4..70efc25a88 100644 --- a/src/forward.cc +++ b/src/forward.cc @@ -1230,8 +1230,8 @@ FwdState::updateHierarchyInfo() const char *nextHop = NULL; if (fs->_peer) { - // went to peer, log peer domain name - nextHop = fs->_peer->host; + // went to peer, log peer host name + nextHop = fs->_peer->name; } else { // went DIRECT, must honor log_ip_on_direct