[master] 5d2cdad Force haproxy onto "localhost" addresses, to make it possible to match syslog-output.

Poul-Henning Kamp phk at FreeBSD.org
Tue May 29 16:02:31 UTC 2018


commit 5d2cdad654be46ecdf176b124c35c647ebb8860b
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Tue May 29 16:00:21 2018 +0000

    Force haproxy onto "localhost" addresses, to make it possible to
    match syslog-output.

diff --git a/bin/varnishtest/vtc_haproxy.c b/bin/varnishtest/vtc_haproxy.c
index 88162a9..3cc12fe 100644
--- a/bin/varnishtest/vtc_haproxy.c
+++ b/bin/varnishtest/vtc_haproxy.c
@@ -389,7 +389,7 @@ haproxy_build_backends(const struct haproxy *h, const char *vsb_data)
 			break;
 
 		*q++ = '\0';
-		sock = VTCP_listen_on(":0", NULL, 1, &err);
+		sock = VTCP_listen_on("localhost:0", NULL, 1, &err);
 		if (err != NULL)
 			vtc_fatal(h->vl,
 			    "Create listen socket failed: %s", err);


More information about the varnish-commit mailing list