From: Amos Jeffries Date: Thu, 7 Jul 2011 11:48:08 +0000 (+1200) Subject: Bug 3222: cache_peer name is not logging on CONNECT X-Git-Tag: take08~55^2~81 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f9cfa00f1a5aa9c7382e1a471a4ae52b3e0e4d1;p=thirdparty%2Fsquid.git Bug 3222: cache_peer name is not logging on CONNECT --- diff --git a/src/tunnel.cc b/src/tunnel.cc index 23906f7e07..5ae29d9da0 100644 --- a/src/tunnel.cc +++ b/src/tunnel.cc @@ -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);