From 53da0c05ceeb11e00c72639584447eb99b23c8e8 Mon Sep 17 00:00:00 2001 From: Jeromy Date: Thu, 23 Mar 2017 22:35:08 -0700 Subject: [PATCH] fix panic when reuseport was no available --- p2p/transport/tcp/tcp.go | 1 + 1 file changed, 1 insertion(+) diff --git a/p2p/transport/tcp/tcp.go b/p2p/transport/tcp/tcp.go index 908229d0bc..a30dcbb7b0 100644 --- a/p2p/transport/tcp/tcp.go +++ b/p2p/transport/tcp/tcp.go @@ -172,6 +172,7 @@ func (t *TcpTransport) newTcpDialer(base manet.Dialer, laddr ma.Multiaddr, doReu return &tcpDialer{ doReuse: false, laddr: laddr, + pattern: pattern, madialer: base, transport: t, }, nil