Literal ip4/6 addresses in VCL

Poul-Henning Kamp phk at phk.freebsd.dk
Sun Mar 7 15:25:46 CET 2010


In message <4B93B6EA.9010205 at schokola.de>, Nils Goroll writes:

>> The syntax for this is already decided, just not implemented:
>> 
>> 	set client.ip = IP(req.http.x-forwarded-for);
>
>Thank you for pointing this out, so I am going to implement this syntax for the 
>case where runtime conversion is needed.
>
>Do you have an opinion regarding the suggestion for the VCL compile time case?

There should not be two different syntaxes, the above should be used in
both cases.

-- 
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