From: Aymeric Vincent Date: Sun, 15 Nov 2015 01:16:18 +0000 (-0800) Subject: Fix cache_peer forceddomain= in CONNECT X-Git-Tag: SQUID_3_5_12~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b149fe8f5543c0c885f705779742136774c304a6;p=thirdparty%2Fsquid.git Fix cache_peer forceddomain= in CONNECT --- diff --git a/src/tunnel.cc b/src/tunnel.cc index 82fd6d4b71..418112ebfc 100644 --- a/src/tunnel.cc +++ b/src/tunnel.cc @@ -974,9 +974,11 @@ tunnelConnectDone(const Comm::ConnectionPointer &conn, Comm::Flag status, int xe debugs(26, 4, HERE << "determine post-connect handling pathway."); if (conn->getPeer()) { tunnelState->request->peer_login = conn->getPeer()->login; + tunnelState->request->peer_domain = conn->getPeer()->domain; tunnelState->request->flags.proxying = !(conn->getPeer()->options.originserver); } else { tunnelState->request->peer_login = NULL; + tunnelState->request->peer_domain = NULL; tunnelState->request->flags.proxying = false; } @@ -1251,9 +1253,11 @@ switchToTunnel(HttpRequest *request, Comm::ConnectionPointer &clientConn, Comm:: debugs(26, 4, "determine post-connect handling pathway."); if (srvConn->getPeer()) { tunnelState->request->peer_login = srvConn->getPeer()->login; + tunnelState->request->peer_domain = srvConn->getPeer()->domain; tunnelState->request->flags.proxying = !(srvConn->getPeer()->options.originserver); } else { tunnelState->request->peer_login = NULL; + tunnelState->request->peer_domain = NULL; tunnelState->request->flags.proxying = false; }