From: phk Date: Fri, 10 Oct 2008 13:08:37 +0000 (+0000) Subject: Eliminate "localhost" from backends, some computers have both an X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac7d13d88be7051671ccb67c5405af59e6a6e374;p=varnish Eliminate "localhost" from backends, some computers have both an IPv4 & IPv6 address in /etc/hosts' localhost entry. Use "127.0.0.1" intead. Send me a telegram when IPv6 matters. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3278 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishtest/tests/v00002.vtc b/varnish-cache/bin/varnishtest/tests/v00002.vtc index 2019bef1..cffc7656 100644 --- a/varnish-cache/bin/varnishtest/tests/v00002.vtc +++ b/varnish-cache/bin/varnishtest/tests/v00002.vtc @@ -9,7 +9,7 @@ varnish v1 -badvcl { # Reference to non-existent backend varnish v1 -badvcl { backend b1 { - .host = "localhost"; + .host = "127.0.0.1"; } sub vcl_recv { set req.backend = b2; @@ -52,7 +52,7 @@ varnish v1 -badvcl { # unknown field varnish v1 -badvcl { backend b1 { - .host = "localhost"; + .host = "127.0.0.1"; .foobar = 123; } } @@ -89,7 +89,7 @@ varnish v1 -badvcl { # Old backend syntax varnish v1 -badvcl { backend b1 { - set host = "localhost"; + set host = "127.0.0.1"; } } diff --git a/varnish-cache/bin/varnishtest/tests/v00005.vtc b/varnish-cache/bin/varnishtest/tests/v00005.vtc index f582de9c..1919a6c5 100644 --- a/varnish-cache/bin/varnishtest/tests/v00005.vtc +++ b/varnish-cache/bin/varnishtest/tests/v00005.vtc @@ -5,7 +5,7 @@ test "VCL: test backend probe syntax" # Check url definition varnish v1 -vcl { backend b1 { - .host = "localhost"; + .host = "127.0.0.1"; .probe = { .url = "/"; } @@ -15,7 +15,7 @@ varnish v1 -vcl { # Check request definition varnish v1 -vcl { backend b1 { - .host = "localhost"; + .host = "127.0.0.1"; .probe = { .request = "GET / HTTP/1.1" @@ -27,7 +27,7 @@ varnish v1 -vcl { # Check redefinition varnish v1 -badvcl { backend b1 { - .host = "localhost"; + .host = "127.0.0.1"; .probe = { .url = "/"; .request = @@ -40,7 +40,7 @@ varnish v1 -badvcl { # Check redefinition the other way varnish v1 -badvcl { backend b1 { - .host = "localhost"; + .host = "127.0.0.1"; .probe = { .request = "GET / HTTP/1.1" diff --git a/varnish-cache/bin/varnishtest/tests/v00006.vtc b/varnish-cache/bin/varnishtest/tests/v00006.vtc index 9839b796..1e10ab58 100644 --- a/varnish-cache/bin/varnishtest/tests/v00006.vtc +++ b/varnish-cache/bin/varnishtest/tests/v00006.vtc @@ -12,7 +12,7 @@ server s1 -listen 127.0.0.1:9080 { # Only one pool, to avoid getting more than one work thread varnish v1 -arg "-p thread_pools=1 -w1,1,300" -vcl { backend b1 { - .host = "localhost"; + .host = "127.0.0.1"; .port = "9080"; } } -start @@ -38,7 +38,7 @@ server s2 -listen 127.0.0.1:9180 { varnish v1 -vcl { backend b2 { - .host = "localhost"; + .host = "127.0.0.1"; .port = "9180"; } }