]> Sergey Matveev's repositories - public-inbox.git/blobdiff - examples/varnish-4.vcl
examples: remove X-Forwarded-For mentions
[public-inbox.git] / examples / varnish-4.vcl
index 7439679de35f89f5f746efdf04468d74396e0483..999f954215a8f0383e2da36426309efb8d748199 100644 (file)
@@ -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" &&