mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-06-30 11:00:48 +00:00
Bumps [github.com/miekg/dns](https://github.com/miekg/dns) from 1.1.50 to 1.1.51. - [Release notes](https://github.com/miekg/dns/releases) - [Changelog](https://github.com/miekg/dns/blob/master/Makefile.release) - [Commits](https://github.com/miekg/dns/compare/v1.1.50...v1.1.51) --- updated-dependencies: - dependency-name: github.com/miekg/dns dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
25 lines
584 B
Go
25 lines
584 B
Go
//go:build !go1.11 || (!aix && !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd)
|
|
// +build !go1.11 !aix,!darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd
|
|
|
|
package dns
|
|
|
|
import "net"
|
|
|
|
const supportsReusePort = false
|
|
|
|
func listenTCP(network, addr string, reuseport bool) (net.Listener, error) {
|
|
if reuseport {
|
|
// TODO(tmthrgd): return an error?
|
|
}
|
|
|
|
return net.Listen(network, addr)
|
|
}
|
|
|
|
func listenUDP(network, addr string, reuseport bool) (net.PacketConn, error) {
|
|
if reuseport {
|
|
// TODO(tmthrgd): return an error?
|
|
}
|
|
|
|
return net.ListenPacket(network, addr)
|
|
}
|