Add INT std.port(IP) which extracts the TCP port number.
By default IP renders as STRING with just the IP number, so if you want to get the port number there too, you have to do something like: set resp.http.where = client.ip + ":" + std.port(client.ip); Not too elegant, but it will do. Remove the "hard-coded" "foo.port" VCL variables.
Showing
Please register or sign in to comment