Feature REQ: Match header value against acl
Poul-Henning Kamp
phk at phk.freebsd.dk
Tue Jan 19 18:24:25 CET 2010
In message <002501ca9918$aa519aa0$fef4cfe0$@paulissen at qbell.nl>, "Henry Pauliss
en" writes:
>What I tried to do is as follow:
>
>if ( !req.http.X-Forwarded-For ~ purge ) {
I have decided what the syntax for this will be, but I have still
not implemented it.
In general all type conversions, except to string, will be explicit
and provide a default, so the above would become:
if (!IP(req.http.X-Forwarded-For, 127.0.0.2) ~ purge) {
...
If the X-F-F header is not there, or does not contain an IP#,
127.0.0.2 will be used instead.
--
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-misc
mailing list