Sync reuseport sub-package to latest version

This commit is contained in:
Kleissner
2021-10-11 01:38:13 +02:00
parent fbeb01e7ff
commit 956e6dd76b
6 changed files with 5 additions and 7 deletions

1
go.mod
View File

@@ -8,7 +8,6 @@ require (
github.com/google/uuid v1.3.0
github.com/gorilla/mux v1.8.0
github.com/gorilla/websocket v1.4.2
github.com/pkg/errors v0.9.1
golang.org/x/crypto v0.0.0-20210415154028-4f45737414dc
golang.org/x/net v0.0.0-20210420210106-798c2154c571
golang.org/x/sys v0.0.0-20210420205809-ac73e9fd8988

2
go.sum
View File

@@ -38,8 +38,6 @@ github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+W
github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
github.com/onsi/gomega v1.4.1/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA=
github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY=
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
golang.org/x/crypto v0.0.0-20170930174604-9419663f5a44/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20200115085410-6d4e4cb37c7d/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=

View File

@@ -1,6 +1,6 @@
# reuseport
This is a fork from `https://github.com/libp2p/go-reuseport`. Last sync of changes: 16.03.2021
This is a fork from `https://github.com/libp2p/go-reuseport`. Last sync of changes: 11.10.2021
**NOTE:** This package REQUIRES go >= 1.11.

View File

@@ -1,3 +1,4 @@
//go:build !plan9 && !windows && !wasm
// +build !plan9,!windows,!wasm
package reuseport

View File

@@ -1,3 +1,4 @@
//go:build wasm
// +build wasm
package reuseport

View File

@@ -19,9 +19,8 @@ package reuseport
import (
"context"
"fmt"
"net"
"github.com/pkg/errors"
)
// Available returns whether or not SO_REUSEPORT or equivalent behaviour is
@@ -54,7 +53,7 @@ func ListenPacket(network, address string) (net.PacketConn, error) {
func Dial(network, laddr, raddr string) (net.Conn, error) {
nla, err := ResolveAddr(network, laddr)
if err != nil {
return nil, errors.Wrap(err, "resolving local addr")
return nil, fmt.Errorf("failed to resolve local addr: %w", err)
}
d := net.Dialer{
Control: Control,