]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix --disable-follow-x-forwarded-for and correct documentation
authorAmos Jeffries <squid3@treenet.co.nz>
Wed, 20 Jul 2011 03:42:19 +0000 (21:42 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 20 Jul 2011 03:42:19 +0000 (21:42 -0600)
This feature is available by default. But protected by default "deny all"
to restrict security problems.

configure.ac

index c4a87fa51d9ebad6680efc46b5305c063c595c8c..d24c092edd0af359ffcecf541d55386821859f37 100644 (file)
@@ -1634,13 +1634,13 @@ AC_ARG_ENABLE(leakfinder,
 
 follow_xff=1
 AC_ARG_ENABLE(follow-x-forwarded-for,
-  AS_HELP_STRING([--enable-follow-x-forwarded-for],[Enable support for following the X-Forwarded-For
+  AS_HELP_STRING([--disable-follow-x-forwarded-for],[Disable support for following the X-Forwarded-For
                  HTTP header to try to find the IP address of the
                  original or indirect client when a request has
                  been forwarded through other proxies.]),
-[ if test "$enableval" = "yes" ; then
-    AC_MSG_NOTICE([follow X-Forwarded-For enabled])
-    follow_xff=1
+[ if test "$enableval" = "no" ; then
+    AC_MSG_NOTICE([Disabling follow X-Forwarded-For])
+    follow_xff=0
   fi
 ])
 if test $follow_xff = 1; then