[master] 53bc920fa Unbreak this test, which tests a fine point of ACL compilation which does not depend on ipv4/ipv6

Poul-Henning Kamp phk at FreeBSD.org
Tue Jan 12 08:44:07 UTC 2021


commit 53bc920fa6f77f191fdb26603bce283a5d15ae2d
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Tue Jan 12 08:43:28 2021 +0000

    Unbreak this test, which tests a fine point of ACL compilation
    which does not depend on ipv4/ipv6

diff --git a/bin/varnishtest/tests/r01312.vtc b/bin/varnishtest/tests/r01312.vtc
index 1309dbbfb..762da43bf 100644
--- a/bin/varnishtest/tests/r01312.vtc
+++ b/bin/varnishtest/tests/r01312.vtc
@@ -1,8 +1,5 @@
 varnishtest "acl miscompile"
 
-# this test only works if we know a network prefix of localhost
-feature ipv4
-
 server s1 {
 	rxreq
 	txresp
@@ -20,8 +17,8 @@ varnish v1 -vcl+backend {
 		"127.0.1"/19;
 	}
 	sub vcl_deliver {
-		set resp.http.ACLfoo = std.ip("${localhost}", client.ip) ~ foo;
-		set resp.http.ACLbar = std.ip("${localhost}", client.ip) ~ bar;
+		set resp.http.ACLfoo = std.ip("127.0.0.1", client.ip) ~ foo;
+		set resp.http.ACLbar = std.ip("127.0.0.1", client.ip) ~ bar;
 	}
 } -start
 


More information about the varnish-commit mailing list