diff options
author | Jimmy Hu <jimmy.hu@dexon.org> | 2019-01-08 17:19:37 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-08 17:19:37 +0800 |
commit | 87140e484160e3bec8ee6c26dde80ca8e99efbd3 (patch) | |
tree | 175b629b8e06ac9701d8ceebf53226fec742aa89 /core/test/tcp-transport.go | |
parent | c2f02dcd02c8bf50321ba8d742ebfaf2ab74f8d2 (diff) | |
download | dexon-consensus-87140e484160e3bec8ee6c26dde80ca8e99efbd3.tar dexon-consensus-87140e484160e3bec8ee6c26dde80ca8e99efbd3.tar.gz dexon-consensus-87140e484160e3bec8ee6c26dde80ca8e99efbd3.tar.bz2 dexon-consensus-87140e484160e3bec8ee6c26dde80ca8e99efbd3.tar.lz dexon-consensus-87140e484160e3bec8ee6c26dde80ca8e99efbd3.tar.xz dexon-consensus-87140e484160e3bec8ee6c26dde80ca8e99efbd3.tar.zst dexon-consensus-87140e484160e3bec8ee6c26dde80ca8e99efbd3.zip |
simulation: fix k8s simulation stuff (#410)
* simulation: fix k8s simulation stuff
* Default K to 0
Diffstat (limited to 'core/test/tcp-transport.go')
-rw-r--r-- | core/test/tcp-transport.go | 4 |
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 } |