diff options
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" && |