]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
authorAmos Jeffries <amosjeffries@squid-cache.org>
Sat, 12 Apr 2008 14:03:26 +0000 (08:03 -0600)
committerAmos Jeffries <amosjeffries@squid-cache.org>
Sat, 12 Apr 2008 14:03:26 +0000 (08:03 -0600)
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..

src/client_side.cc

index 06c9bb42ef0146334c8277a216f7fa8f110b49ac..2916e7853eb7082cee375c2a90c493e5061dcbca 100644 (file)
@@ -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) {