Commit d366c611 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

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: http://www.varnish-cache.org/svn/trunk@3211 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 54ee7279
......@@ -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);
......
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