diff options
-rw-r--r-- | plugin/pkg/reuseport/listen.go (renamed from plugin/pkg/reuseport/listen_go111.go) | 3 | ||||
-rw-r--r-- | plugin/pkg/reuseport/listen_go_not111.go | 13 |
2 files changed, 0 insertions, 16 deletions
diff --git a/plugin/pkg/reuseport/listen_go111.go b/plugin/pkg/reuseport/listen.go index fa6f365d6..c15cdb34f 100644 --- a/plugin/pkg/reuseport/listen_go111.go +++ b/plugin/pkg/reuseport/listen.go @@ -1,6 +1,3 @@ -// +build go1.11 -// +build aix darwin dragonfly freebsd linux netbsd openbsd - package reuseport import ( diff --git a/plugin/pkg/reuseport/listen_go_not111.go b/plugin/pkg/reuseport/listen_go_not111.go deleted file mode 100644 index e3bdfb906..000000000 --- a/plugin/pkg/reuseport/listen_go_not111.go +++ /dev/null @@ -1,13 +0,0 @@ -// +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) -} |