could you be missing a "import std;" ?
Yes I was, thanks :-)
But the if string here : https://www.varnish-cache.org/docs/4.0/reference/vmod_std.generated.html#ip-ip-string-ip
didn't work for me. And for information this one works really well : if (!std.ip(regsub(req.http.X-Forwarded-For, "[, ].*$", ""), client.ip) ~ purge) -- CHUNKZ.NET - dodgy DIYer and computer technician Bertrand Caplet, Flers (FR) Feel free to send encrypted/signed messages Key ID: FF395BD9 GPG FP: DE10 73FD 17EB 5544 A491 B385 1EDA 35DC FF39 5BD9 _______________________________________________ varnish-misc mailing list [email protected] https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
