Changeset 4467
- Timestamp:
- 18/01/10 14:30:47 (2 months ago)
- Location:
- trunk/varnish-cache/bin
- Files:
-
- 1 added
- 2 modified
-
varnishd/cache_http.c (modified) (1 diff)
-
varnishd/default.vcl (modified) (1 diff)
-
varnishtest/tests/b00031.vtc (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/varnish-cache/bin/varnishd/cache_http.c
r4456 r4467 735 735 http_FilterFields(sp->wrk, sp->fd, hp, sp->http, how); 736 736 http_PrintfHeader(sp->wrk, sp->fd, hp, "X-Varnish: %u", sp->xid); 737 http_PrintfHeader(sp->wrk, sp->fd, hp,738 "X-Forwarded-For: %s", sp->addr);739 737 } 740 738 -
trunk/varnish-cache/bin/varnishd/default.vcl
r4100 r4467 41 41 42 42 sub vcl_recv { 43 if (req.http.x-forwarded-for) { 44 set req.http.X-Forwarded-For = 45 req.http.X-Forwarded-For ", " client.ip; 46 } else { 47 set req.http.X-Forwarded-For = client.ip; 48 } 43 49 if (req.request != "GET" && 44 50 req.request != "HEAD" &&
