vtest "Test X-Forward-For headers"

server s1 {
	rxreq
	expect req.http.X-Forwarded-For == "${localhost}"
	txresp
	rxreq
	expect req.http.X-Forwarded-For == "1.2.3.4, ${localhost}"
	txresp
} -start

vinyl v1 -vcl+backend {
} -start

client c1 {
	txreq -url /1
	rxresp
	txreq -url /2 -hdr "X-forwarded-for: 1.2.3.4"
	rxresp
} -run
