From: Amos Jeffries Date: Sat, 12 Apr 2008 14:03:26 +0000 (-0600) Subject: Author: Henrik Nordstrom X-Git-Tag: SQUID_3_0_STABLE5~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a942c2065a2f055ca9358b9e378a6abaffaabfe5;p=thirdparty%2Fsquid.git Author: Henrik Nordstrom Fallback on transparent interception mode even if the connection didn't seem to be transparently intercepted Needed to deal properly with situations where connections to the local host is intercepted, or when people NAT outside the Squid server but still compile Squid with support for the NAT/interception method availabe on the host OS.. --- diff --git a/src/client_side.cc b/src/client_side.cc index 06c9bb42ef..2916e7853e 100644 --- a/src/client_side.cc +++ b/src/client_side.cc @@ -1963,6 +1963,9 @@ parseHttpRequest(ConnStateData::Pointer & conn, HttpParser *hp, method_t * metho /* prepend our name & port */ http->uri = xstrdup(internalLocalUri(NULL, url)); http->flags.accel = 1; + } else if (conn->port->transparent) { + // Fallback on transparent if enabled, useful for "self" requests + prepareTransparentURL(conn, http, url, req_hdr); } if (!http->uri) {