varnishtest "anon acl numbering"


server s1 {
	rxreq
	expect req.http.foo1 == "Match"
	expect req.http.foo2 == "Match"
	txresp -bodylen 40
} -start

varnish v1 -vcl+backend {

sub vcl_recv {
	if (client.ip == "${s1_addr}" || client.ip == "127.0.0.1") {
		set req.http.foo1 = "Match";
	}
	if (client.ip == "127.0.0.1" || client.ip == "${s1_addr}") {
		set req.http.foo2 = "Match";
	}
}

} -start

client c1 {
	txreq
	rxresp
	expect resp.bodylen == 40
} -run


