Using ACL with non-IP fields
Mark Hanford
mark at hanfordonline.co.uk
Fri Mar 31 12:14:46 CEST 2017
Aah, thanks for that. I thought I'd looked through std, but must've missed
that bit. Still getting the hang of the post-v3 way of doing things :)
thanks
--
Mark
On 31 March 2017 at 11:05, Dridi Boukelmoune <dridi at varni.sh> wrote:
> > Is there any way I can get the same result as this but without using
> > client.ip?
>
> Yes: std.ip(string, ip_fallback)
>
> if (std.ip(req.http.X-Real-Ip, "some_address") ~ trustedips) {
>
> See man vmod_std, or search the online docs.
>
> Dridi
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20170331/08f666b0/attachment.html>
More information about the varnish-misc
mailing list