about summary refs log tree commit homepage
path: root/examples/varnish-4.vcl
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-07-03 01:04:10 +0000
committerEric Wong <e@80x24.org>2016-07-03 01:04:10 +0000
commit5e14b8e68483ab412b4a3ae1a62429237143b89b (patch)
treea10ba7c0a1aac8544655b8116997b0605b51a423 /examples/varnish-4.vcl
parent6ef495caacffe26bfc131fa1995373c42316def0 (diff)
downloadpublic-inbox-5e14b8e68483ab412b4a3ae1a62429237143b89b.tar.gz
We don't need to care about client IPs anywhere.
Diffstat (limited to 'examples/varnish-4.vcl')
-rw-r--r--examples/varnish-4.vcl8
1 files changed, 0 insertions, 8 deletions
diff --git a/examples/varnish-4.vcl b/examples/varnish-4.vcl
index 7439679d..999f9542 100644
--- a/examples/varnish-4.vcl
+++ b/examples/varnish-4.vcl
@@ -15,14 +15,6 @@ backend default {
 }
 
 sub vcl_recv {
-        if (req.restarts == 0) {
-                if (req.http.x-forwarded-for) {
-                        set req.http.X-Forwarded-For =
-                        req.http.X-Forwarded-For + ", " + client.ip;
-                } else {
-                        set req.http.X-Forwarded-For = client.ip;
-                }
-        }
         if (req.method != "GET" &&
                         req.method != "HEAD" &&
                         req.method != "PUT" &&