mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-08-04 03:25:01 +00:00
9b03840b42
Bumps [github.com/miekg/dns](https://github.com/miekg/dns) from 1.1.56 to 1.1.57. - [Changelog](https://github.com/miekg/dns/blob/master/Makefile.release) - [Commits](https://github.com/miekg/dns/compare/v1.1.56...v1.1.57) --- 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>
27 lines
644 B
Go
27 lines
644 B
Go
//go:build !aix && !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd
|
|
// +build !aix,!darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd
|
|
|
|
package dns
|
|
|
|
import "net"
|
|
|
|
const supportsReusePort = false
|
|
|
|
func listenTCP(network, addr string, reuseport, reuseaddr bool) (net.Listener, error) {
|
|
if reuseport || reuseaddr {
|
|
// TODO(tmthrgd): return an error?
|
|
}
|
|
|
|
return net.Listen(network, addr)
|
|
}
|
|
|
|
const supportsReuseAddr = false
|
|
|
|
func listenUDP(network, addr string, reuseport, reuseaddr bool) (net.PacketConn, error) {
|
|
if reuseport || reuseaddr {
|
|
// TODO(tmthrgd): return an error?
|
|
}
|
|
|
|
return net.ListenPacket(network, addr)
|
|
}
|