In message <002501ca9918$aa519aa0$fef4cf...@[email protected]>, "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
[email protected] | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
_______________________________________________
varnish-misc mailing list
[email protected]
http://projects.linpro.no/mailman/listinfo/varnish-misc