mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 08:44:17 -04:00
pkg/reuseport: Remove pre-go1.11 impl (#4795)
This commit is contained in:
@@ -1,6 +1,3 @@
|
|||||||
// +build go1.11
|
|
||||||
// +build aix darwin dragonfly freebsd linux netbsd openbsd
|
|
||||||
|
|
||||||
package reuseport
|
package reuseport
|
||||||
|
|
||||||
import (
|
import (
|
||||||
@@ -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)
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user