mirror of
https://github.com/PeernetOfficial/core.git
synced 2026-07-17 10:57:49 +01:00
Sync reuseport sub-package to latest version
This commit is contained in:
1
go.mod
1
go.mod
@@ -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
2
go.sum
@@ -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=
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build !plan9 && !windows && !wasm
|
||||
// +build !plan9,!windows,!wasm
|
||||
|
||||
package reuseport
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//go:build wasm
|
||||
// +build wasm
|
||||
|
||||
package reuseport
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user