From 01c76d70da2efb40323a9012051e75589d5ce201 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Tue, 6 Feb 2018 12:22:46 +0100 Subject: [PATCH] listen on localhost only --- testing/scenarios/common.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/scenarios/common.go b/testing/scenarios/common.go index ebfc663d3..ac6155bb8 100644 --- a/testing/scenarios/common.go +++ b/testing/scenarios/common.go @@ -23,7 +23,7 @@ import ( ) func pickPort() net.Port { - listener, err := net.Listen("tcp4", ":0") + listener, err := net.Listen("tcp4", "127.0.0.1:0") common.Must(err) defer listener.Close()