Literal ip4/6 addresses in VCL

Poul-Henning Kamp phk at
Sun Mar 7 15:03:46 CET 2010

In message <4B93B0AB.4080107 at>, Nils Goroll writes:

>My main question is if they should be tokenized as CSTRs or rather as new 
>tokens, e.g. of token type IP (not to be confused with variable type IP).

The syntax for this is already decided, just not implemented:

	set client.ip = IP(req.http.x-forwarded-for);

Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

More information about the varnish-dev mailing list