aboutsummaryrefslogtreecommitdiffstats
path: root/core/test/tcp-transport.go
diff options
context:
space:
mode:
Diffstat (limited to 'core/test/tcp-transport.go')
-rw-r--r--core/test/tcp-transport.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/test/tcp-transport.go b/core/test/tcp-transport.go
index e04ba53..020b488 100644
--- a/core/test/tcp-transport.go
+++ b/core/test/tcp-transport.go
@@ -607,7 +607,7 @@ func (t *TCPTransportClient) Join(
conn string
)
for {
- addr = net.JoinHostPort("127.0.0.1", strconv.Itoa(t.localPort))
+ addr = net.JoinHostPort("0.0.0.0", strconv.Itoa(t.localPort))
ln, err = net.Listen("tcp", addr)
if err == nil {
go t.listenerRoutine(ln.(*net.TCPListener))
@@ -772,7 +772,7 @@ func (t *TCPTransportServer) Host() (chan *TransportEnvelope, error) {
// if we can listen on the pre-defiend part, we don't have to
// retry with other random ports.
ln, err := net.Listen(
- "tcp", net.JoinHostPort("127.0.0.1", strconv.Itoa(t.localPort)))
+ "tcp", net.JoinHostPort("0.0.0.0", strconv.Itoa(t.localPort)))
if err != nil {
return nil, err
}