From: Amos Jeffries Date: Fri, 15 Aug 2008 11:13:20 +0000 (+1200) Subject: Author: Henrik Nordstrom X-Git-Tag: SQUID_3_0_STABLE9~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf01b9f50193c34933c0cd7d573c8b0a13250825;p=thirdparty%2Fsquid.git Author: Henrik Nordstrom 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 4d083dafad..46270c7c81 100644 --- a/src/forward.cc +++ b/src/forward.cc @@ -1211,8 +1211,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