Commit a8f17db7 authored by Tollef Fog Heen's avatar Tollef Fog Heen

Be explicit about listening to localhost


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2778 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent eb40b2cb
......@@ -2,7 +2,7 @@
test "basic default HTTP transactions"
server s1 -listen :9080 {
server s1 -listen localhost:9080 {
rxreq
txresp
}
......
......@@ -2,7 +2,7 @@
test "basic default HTTP transactions with expect"
server s1 -listen :9080 {
server s1 -listen localhost:9080 {
rxreq
expect req.request == GET
expect req.proto == HTTP/1.1
......
......@@ -2,7 +2,7 @@
test "basic default HTTP transactions with expect and options"
server s1 -listen :9080 {
server s1 -listen localhost:9080 {
rxreq
expect req.request == PUT
expect req.proto == HTTP/1.0
......
......@@ -2,7 +2,7 @@
test "dual independent HTTP transactions"
server s1 -listen :9080 {
server s1 -listen localhost:9080 {
rxreq
expect req.request == PUT
expect req.proto == HTTP/1.0
......@@ -10,7 +10,7 @@ server s1 -listen :9080 {
txresp -proto HTTP/1.2 -status 201 -msg Foo
}
server s2 -listen :9081 {
server s2 -listen localhost:9081 {
rxreq
expect req.request == GET
expect req.proto == HTTP/1.1
......
......@@ -2,7 +2,7 @@
test "dual shared server HTTP transactions"
server s1 -listen :9080 -repeat 2 {
server s1 -listen localhost:9080 -repeat 2 {
rxreq
expect req.request == PUT
expect req.proto == HTTP/1.0
......
......@@ -2,7 +2,7 @@
test "dual shared client HTTP transactions"
server s1 -listen :9080 {
server s1 -listen localhost:9080 {
rxreq
expect req.request == PUT
expect req.proto == HTTP/1.0
......@@ -10,7 +10,7 @@ server s1 -listen :9080 {
txresp -proto HTTP/1.2 -status 201 -msg Foo
}
server s2 -listen :9081 {
server s2 -listen localhost:9081 {
rxreq
expect req.request == GET
expect req.proto == HTTP/1.1
......
......@@ -2,7 +2,7 @@
test "bidirectional message bodies"
server s1 -listen :9080 {
server s1 -listen localhost:9080 {
rxreq
expect req.request == PUT
expect req.proto == HTTP/1.0
......
......@@ -2,7 +2,7 @@
test "TCP reuse"
server s1 -listen :9080 {
server s1 -listen localhost:9080 {
rxreq
expect req.url == "/1"
txresp -hdr "Content-Length: 10" -body "123456789\n"
......
......@@ -120,7 +120,7 @@ server_new(char *name)
vtc_log(s->vl, 0, "Server name must start with 's'");
exit (1);
}
s->listen = ":9080";
s->listen = "localhost:9080";
AZ(VSS_parse(s->listen, &s->addr, &s->port));
s->repeat = 1;
s->depth = 1;
......
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