vtest "client.ip vs. string session attrs"

vinyl v1 -vcl {
	import debug;
	import std;
	backend dummy None;
	sub vcl_recv {
		return (synth(200));
	}
	sub vcl_synth {
		set resp.http.ci = client.ip;
		set resp.http.s-ci = debug.client_ip();
		set resp.http.pi = std.port(client.ip);
		set resp.http.s-pi = debug.client_port();
	}
} -start

client c1 {
	txreq
	rxresp
	expect resp.http.ci == resp.http.s-ci
	expect resp.http.pi == resp.http.s-pi
} -run
