This reverts commit 4a34e8b897
.
This commit is contained in:
parent
7d542fec67
commit
a977998747
2 changed files with 16 additions and 0 deletions
|
@ -1,3 +1,6 @@
|
|||
// +build go1.11
|
||||
// +build aix darwin dragonfly freebsd linux netbsd openbsd
|
||||
|
||||
package reuseport
|
||||
|
||||
import (
|
13
plugin/pkg/reuseport/listen_go_not111.go
Normal file
13
plugin/pkg/reuseport/listen_go_not111.go
Normal file
|
@ -0,0 +1,13 @@
|
|||
// +build !go1.11 !aix,!darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd
|
||||
|
||||
package reuseport
|
||||
|
||||
import "net"
|
||||
|
||||
// Listen is a wrapper around net.Listen.
|
||||
func Listen(network, addr string) (net.Listener, error) { return net.Listen(network, addr) }
|
||||
|
||||
// ListenPacket is a wrapper around net.ListenPacket.
|
||||
func ListenPacket(network, addr string) (net.PacketConn, error) {
|
||||
return net.ListenPacket(network, addr)
|
||||
}
|
Loading…
Add table
Reference in a new issue