• Poul-Henning Kamp's avatar
    Add INT std.port(IP) which extracts the TCP port number. · 22677062
    Poul-Henning Kamp authored
    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.
    22677062
v00025.vtc 842 Bytes