diff options
author | 2021-08-13 07:46:35 +0200 | |
---|---|---|
committer | 2021-08-12 22:46:35 -0700 | |
commit | 4a34e8b8979f23a77000ad6580051b06d2e97508 (patch) | |
tree | 10a34f7f16e5888cfeace7bfd66ab6a3205fb108 /plugin | |
parent | 964cf38412b533e9ade53b3addbbe63ffa975b26 (diff) | |
download | coredns-4a34e8b8979f23a77000ad6580051b06d2e97508.tar.gz coredns-4a34e8b8979f23a77000ad6580051b06d2e97508.tar.zst coredns-4a34e8b8979f23a77000ad6580051b06d2e97508.zip |
pkg/reuseport: Remove pre-go1.11 impl (#4795)
Diffstat (limited to 'plugin')
-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) -} |