From 055327437924d45ee50403c34528f2f34e006657 Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Thu, 9 Nov 2017 11:58:38 -0800 Subject: [PATCH] update go-reuseport 1. Migrate to libp2p repo. 2. Pull in fixes for edge platforms. Related: use `x/sys` instead of `syscall` when possible. 3. Pull in less complicated and slightly faster dial logic. --- p2p/transport/tcp/reuseport.go | 2 +- p2p/transport/tcp/tcp.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/p2p/transport/tcp/reuseport.go b/p2p/transport/tcp/reuseport.go index 6ead3a74a4..db2b3da698 100644 --- a/p2p/transport/tcp/reuseport.go +++ b/p2p/transport/tcp/reuseport.go @@ -6,7 +6,7 @@ import ( "strings" "syscall" - reuseport "github.com/jbenet/go-reuseport" + reuseport "github.com/libp2p/go-reuseport" ) // envReuseport is the env variable name used to turn off reuse port. diff --git a/p2p/transport/tcp/tcp.go b/p2p/transport/tcp/tcp.go index 5501ae8a56..442b3d9fc3 100644 --- a/p2p/transport/tcp/tcp.go +++ b/p2p/transport/tcp/tcp.go @@ -7,7 +7,7 @@ import ( "sync" logging "github.com/ipfs/go-log" - reuseport "github.com/jbenet/go-reuseport" + reuseport "github.com/libp2p/go-reuseport" tpt "github.com/libp2p/go-libp2p-transport" ma "github.com/multiformats/go-multiaddr" manet "github.com/multiformats/go-multiaddr-net"