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 <[email protected]> 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 >
_______________________________________________ varnish-misc mailing list [email protected] https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
