From 699e44e1a776dc020b5f1656b6f990c1a01c958d Mon Sep 17 00:00:00 2001 From: tfheen Date: Mon, 23 Jun 2008 13:23:45 +0000 Subject: [PATCH] Be explicit about listening to localhost git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2778 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishtest/tests/a00000.vtc | 2 +- varnish-cache/bin/varnishtest/tests/a00001.vtc | 2 +- varnish-cache/bin/varnishtest/tests/a00002.vtc | 2 +- varnish-cache/bin/varnishtest/tests/a00003.vtc | 4 ++-- varnish-cache/bin/varnishtest/tests/a00004.vtc | 2 +- varnish-cache/bin/varnishtest/tests/a00005.vtc | 4 ++-- varnish-cache/bin/varnishtest/tests/a00006.vtc | 2 +- varnish-cache/bin/varnishtest/tests/a00007.vtc | 2 +- varnish-cache/bin/varnishtest/vtc_server.c | 2 +- 9 files changed, 11 insertions(+), 11 deletions(-) diff --git a/varnish-cache/bin/varnishtest/tests/a00000.vtc b/varnish-cache/bin/varnishtest/tests/a00000.vtc index 9371980e..ff7bf054 100644 --- a/varnish-cache/bin/varnishtest/tests/a00000.vtc +++ b/varnish-cache/bin/varnishtest/tests/a00000.vtc @@ -2,7 +2,7 @@ test "basic default HTTP transactions" -server s1 -listen :9080 { +server s1 -listen localhost:9080 { rxreq txresp } diff --git a/varnish-cache/bin/varnishtest/tests/a00001.vtc b/varnish-cache/bin/varnishtest/tests/a00001.vtc index f2607c98..2e90b39c 100644 --- a/varnish-cache/bin/varnishtest/tests/a00001.vtc +++ b/varnish-cache/bin/varnishtest/tests/a00001.vtc @@ -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 diff --git a/varnish-cache/bin/varnishtest/tests/a00002.vtc b/varnish-cache/bin/varnishtest/tests/a00002.vtc index 04f96ddb..9d9da64c 100644 --- a/varnish-cache/bin/varnishtest/tests/a00002.vtc +++ b/varnish-cache/bin/varnishtest/tests/a00002.vtc @@ -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 diff --git a/varnish-cache/bin/varnishtest/tests/a00003.vtc b/varnish-cache/bin/varnishtest/tests/a00003.vtc index be24a485..04f33a1c 100644 --- a/varnish-cache/bin/varnishtest/tests/a00003.vtc +++ b/varnish-cache/bin/varnishtest/tests/a00003.vtc @@ -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 diff --git a/varnish-cache/bin/varnishtest/tests/a00004.vtc b/varnish-cache/bin/varnishtest/tests/a00004.vtc index 82e94e57..5f219c4e 100644 --- a/varnish-cache/bin/varnishtest/tests/a00004.vtc +++ b/varnish-cache/bin/varnishtest/tests/a00004.vtc @@ -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 diff --git a/varnish-cache/bin/varnishtest/tests/a00005.vtc b/varnish-cache/bin/varnishtest/tests/a00005.vtc index 3b5f81a6..a4192a83 100644 --- a/varnish-cache/bin/varnishtest/tests/a00005.vtc +++ b/varnish-cache/bin/varnishtest/tests/a00005.vtc @@ -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 diff --git a/varnish-cache/bin/varnishtest/tests/a00006.vtc b/varnish-cache/bin/varnishtest/tests/a00006.vtc index fb0966e5..94532b25 100644 --- a/varnish-cache/bin/varnishtest/tests/a00006.vtc +++ b/varnish-cache/bin/varnishtest/tests/a00006.vtc @@ -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 diff --git a/varnish-cache/bin/varnishtest/tests/a00007.vtc b/varnish-cache/bin/varnishtest/tests/a00007.vtc index f8f82c0b..629f4811 100644 --- a/varnish-cache/bin/varnishtest/tests/a00007.vtc +++ b/varnish-cache/bin/varnishtest/tests/a00007.vtc @@ -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" diff --git a/varnish-cache/bin/varnishtest/vtc_server.c b/varnish-cache/bin/varnishtest/vtc_server.c index 026296a0..2834cbf9 100644 --- a/varnish-cache/bin/varnishtest/vtc_server.c +++ b/varnish-cache/bin/varnishtest/vtc_server.c @@ -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; -- 2.39.5