]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 3222: cache_peer name is not logging on CONNECT
authorAmos Jeffries <squid3@treenet.co.nz>
Thu, 7 Jul 2011 11:48:08 +0000 (23:48 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Thu, 7 Jul 2011 11:48:08 +0000 (23:48 +1200)
src/tunnel.cc

index 23906f7e07fd61a3bd8915211548c01d7eb4529e..5ae29d9da0150d9a6466fa97bff2eaa1155b0ed4 100644 (file)
@@ -555,7 +555,7 @@ tunnelConnectDone(const Comm::ConnectionPointer &conn, comm_err_t status, int xe
 #endif
 
     if (conn != NULL && conn->getPeer())
-        hierarchyNote(&tunnelState->request->hier, conn->peerType, conn->getPeer()->host);
+        hierarchyNote(&tunnelState->request->hier, conn->peerType, conn->getPeer()->name);
     else if (Config.onoff.log_ip_on_direct) {
         conn->remote.NtoA(fd_table[conn->fd].ipaddr,sizeof(fd_table[conn->fd].ipaddr));
         hierarchyNote(&tunnelState->request->hier, conn->peerType, fd_table[conn->fd].ipaddr);