[master] 9a8e69f Add some tests using std.ip() with IPv6
Bjoern A. Zeeb
bzeeb-lists at lists.zabbadoz.net
Thu Oct 15 03:18:16 CEST 2015
> On 14 Oct 2015, at 21:44 , Federico G. Schwindt <fgsch at lodoss.net> wrote:
>
>
> commit 9a8e69f26b9981493c8c699bad63a34e7d0570d3
> Author: Federico G. Schwindt <fgsch at lodoss.net>
> Date: Wed Oct 14 22:41:50 2015 +0100
>
> Add some tests using std.ip() with IPv6
>
> diff --git a/bin/varnishtest/tests/m00011.vtc b/bin/varnishtest/tests/m00011.vtc
> index 29c4261..bf96dd5 100644
> --- a/bin/varnishtest/tests/m00011.vtc
> +++ b/bin/varnishtest/tests/m00011.vtc
> @@ -16,6 +16,8 @@ varnish v1 -arg "-Wpoll" -vcl+backend {
> set resp.http.foo1 = std.ip("9.9.9.*", server.ip);
> set resp.http.foo2 = std.ip("1.2.3.*", "127.0.0.2");
> set resp.http.foo3 = std.ip("1.2.3.5", "127.0.0.3");
> + set resp.http.foo4 = std.ip("2001:db8::", "[::1]");
> + set resp.http.foo5 = std.ip(“2001::db8::", "[::1]");
That second ne is not a documentation prefix anymore but a valid address assigned to people. Not that anyone seems to care here for IPv4, but .. maybe one could use test or benchmark blocks properly. There’s plenty of addresses (both legacy and IPv6) st aside for this.
/bz
More information about the varnish-commit
mailing list