I think I got it:
sub vcl_pipe {
set bereq.http.connection = "close";
if (bereq.http.x-forwarded-for) {
set bereq.http.X-forwarded-for =
bereq.http.X-forwarded-for ", "regsub(client.ip, ":.*", "");
} else {
set bereq.http.X-forwarded-for = regsub(client.ip,
":.*", "");
}
This should be all of it, no?
On 24.6.2010 14:24, Bedis 9 wrote:
Hi,
In which hook have you put your peace of code?
cheers
_______________________________________________
varnish-misc mailing list
[email protected]
http://lists.varnish-cache.org/mailman/listinfo/varnish-misc