]> err.no Git - varnish/commitdiff
Use 127.0.0.1 instead of localhost to test the ports argument, localhost
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 22 Sep 2008 08:15:31 +0000 (08:15 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 22 Sep 2008 08:15:31 +0000 (08:15 +0000)
may not resolve.

Remind me to change this when IPv4 goes away :-)

Fixes #327

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3211 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/lib/libvcl/vcc_backend.c

index 132097e19799d02ddd2c535c7068971b97c5e947..3d7c9673b4f42e5b118842ba7c73375172ffdec8 100644 (file)
@@ -580,7 +580,7 @@ vcc_ParseHostDef(struct tokenlist *tl, int *nbh, const struct token *name, const
 
        /* Check that the portname makes sense */
        if (t_port != NULL) {
-               ep = CheckHostPort("localhost", t_port->dec);
+               ep = CheckHostPort("127.0.0.1", t_port->dec);
                if (ep != NULL) {
                        vsb_printf(tl->sb,
                            "Backend port '%.*s': %s\n", PF(t_port), ep);