]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fallback on transparent interception mode even if the connection didn't seem
authorHenrik Nordstrom <henrik@henriknordstrom.net>
Sun, 6 Apr 2008 01:31:13 +0000 (03:31 +0200)
committerHenrik Nordstrom <henrik@henriknordstrom.net>
Sun, 6 Apr 2008 01:31:13 +0000 (03:31 +0200)
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 db8561a4b2503e675ccb3a37555c6b10411b4a16..6caddbd82afbd89808b32b7714abbab0ea5ed478 100644 (file)
@@ -1995,6 +1995,9 @@ parseHttpRequest(ConnStateData *conn, HttpParser *hp, HttpRequestMethod * method
         /* 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) {