diff options
author | Eric Wong <e@80x24.org> | 2016-07-03 01:04:10 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-07-03 01:04:10 +0000 |
commit | 5e14b8e68483ab412b4a3ae1a62429237143b89b (patch) | |
tree | a10ba7c0a1aac8544655b8116997b0605b51a423 /examples/varnish-4.vcl | |
parent | 6ef495caacffe26bfc131fa1995373c42316def0 (diff) | |
download | public-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.vcl | 8 |
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" && |