From 33b24cf01e6b5a0cba6d948573f3c18e48cf38bf Mon Sep 17 00:00:00 2001 From: Francesco Chemolli Date: Fri, 14 Sep 2012 13:35:12 +0200 Subject: [PATCH] Reverted XFF unhiding changes --- src/HttpRequest.h | 4 ++++ src/SquidConfig.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/HttpRequest.h b/src/HttpRequest.h index 49c523031c..40005752a5 100644 --- a/src/HttpRequest.h +++ b/src/HttpRequest.h @@ -173,7 +173,9 @@ public: Ip::Address client_addr; +#if FOLLOW_X_FORWARDED_FOR Ip::Address indirect_client_addr; +#endif /* FOLLOW_X_FORWARDED_FOR */ Ip::Address my_addr; @@ -206,7 +208,9 @@ public: String extacl_message; /* String to be used for error page purposes */ +#if FOLLOW_X_FORWARDED_FOR String x_forwarded_for_iterator; /* XXX a list of IP addresses */ +#endif /* FOLLOW_X_FORWARDED_FOR */ public: bool multipartRangeRequest() const; diff --git a/src/SquidConfig.h b/src/SquidConfig.h index cad647411f..747f9d3fb7 100644 --- a/src/SquidConfig.h +++ b/src/SquidConfig.h @@ -383,7 +383,9 @@ public: #if USE_SSL acl_access *ssl_bump; #endif +#if FOLLOW_X_FORWARDED_FOR acl_access *followXFF; +#endif /* FOLLOW_X_FORWARDED_FOR */ #if ICAP_CLIENT acl_access* icap; -- 2.47.2