From 94ae5ea738f42471ea78334862394c72f3122c0c Mon Sep 17 00:00:00 2001 From: phk Date: Mon, 22 Sep 2008 08:15:31 +0000 Subject: [PATCH] Use 127.0.0.1 instead of localhost to test the ports argument, localhost 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/varnish-cache/lib/libvcl/vcc_backend.c b/varnish-cache/lib/libvcl/vcc_backend.c index 132097e1..3d7c9673 100644 --- a/varnish-cache/lib/libvcl/vcc_backend.c +++ b/varnish-cache/lib/libvcl/vcc_backend.c @@ -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); -- 2.39.5