]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug #2437: peer name not logged in access.log like expected, instead the ip address...
authorHenrik Nordstrom <henrik@henriknordstrom.net>
Thu, 14 Aug 2008 19:28:51 +0000 (21:28 +0200)
committerHenrik Nordstrom <henrik@henriknordstrom.net>
Thu, 14 Aug 2008 19:28:51 +0000 (21:28 +0200)
The hierarchy field in access.log should log the peer name, not the hostname/ipaddress.

This is a regression from 2.6.

src/forward.cc

index 8d61c4dca4a8c223c5e8834ecbae8cd319f5b458..70efc25a880d917a1e16f01d93840a5bfaeeacf9 100644 (file)
@@ -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