varnishtest "VCC type issue in regsub arg 1"

server s1 {
	rxreq
	expect req.http.foo == "${localhost}"
	expect req.http.bar == "${localhost}"
	txresp
} -start

varnish v1 -vcl+backend {
	sub vcl_recv {
		set req.http.bar = regsub(req.url, ".*", client.ip);
		set req.http.foo = regsub(client.ip, ":.*", client.ip);
	}
} -start

client c1 {
	txreq -url "/"
	rxresp
	expect resp.status == 200
} -run
