]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Updated follow_x_forwarded-for documentation
authorAmos Jeffries <squid3@treenet.co.nz>
Tue, 25 May 2010 23:39:46 +0000 (11:39 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 25 May 2010 23:39:46 +0000 (11:39 +1200)
src/cf.data.pre

index 69e085dd48d15b79d09352b67925e9178e02f3ca..d06b499327488252f1677f7f88e55c71f3ff2b3e 100644 (file)
@@ -740,13 +740,12 @@ DOC_START
        If a request reaches us from a source that is allowed by this
        configuration item, then we consult the X-Forwarded-For header
        to see where that host received the request from.  If the
-       X-Forwarded-For header contains multiple addresses, and if
-       acl_uses_indirect_client is on, then we continue backtracking
-       until we reach an address for which we are not allowed to
-       follow the X-Forwarded-For header, or until we reach the first
-       address in the list.  (If acl_uses_indirect_client is off, then
-       it's impossible to backtrack through more than one level of
-       X-Forwarded-For addresses.)
+       X-Forwarded-For header contains multiple addresses, we continue
+       backtracking until we reach an address for which we are not allowed
+       to follow the X-Forwarded-For header, or until we reach the first
+       address in the list. For the purpose of ACL used in the
+       follow_x_forwarded_for directive the src ACL type always matches
+       the address we are testing and srcdomain matches its rDNS.
 
        The end result of this process is an IP address that we will
        refer to as the indirect client address.  This address may