Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
9a8e69f2
Commit
9a8e69f2
authored
Oct 14, 2015
by
Federico G. Schwindt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add some tests using std.ip() with IPv6
parent
a5b9d6b0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
m00011.vtc
bin/varnishtest/tests/m00011.vtc
+4
-0
No files found.
bin/varnishtest/tests/m00011.vtc
View file @
9a8e69f2
...
...
@@ -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]");
}
} -start
...
...
@@ -27,6 +29,8 @@ client c1 {
expect resp.http.foo1 == "127.0.0.1"
expect resp.http.foo2 == "127.0.0.2"
expect resp.http.foo3 == "1.2.3.5"
expect resp.http.foo4 == "2001:db8::"
expect resp.http.foo5 == "::1"
txreq -url "/foo2"
rxresp
expect resp.bodylen == 2
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment