Commit 53bc920f authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Unbreak this test, which tests a fine point of ACL compilation

which does not depend on ipv4/ipv6
parent cf7304c6
varnishtest "acl miscompile" varnishtest "acl miscompile"
# this test only works if we know a network prefix of localhost
feature ipv4
server s1 { server s1 {
rxreq rxreq
txresp txresp
...@@ -20,8 +17,8 @@ varnish v1 -vcl+backend { ...@@ -20,8 +17,8 @@ varnish v1 -vcl+backend {
"127.0.1"/19; "127.0.1"/19;
} }
sub vcl_deliver { sub vcl_deliver {
set resp.http.ACLfoo = std.ip("${localhost}", client.ip) ~ foo; set resp.http.ACLfoo = std.ip("127.0.0.1", client.ip) ~ foo;
set resp.http.ACLbar = std.ip("${localhost}", client.ip) ~ bar; set resp.http.ACLbar = std.ip("127.0.0.1", client.ip) ~ bar;
} }
} -start } -start
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment