listen_no_reuseport.go 285 B

123456789101112131415
  1. // +build !linux,!darwin !go1.11
  2. package main
  3. import (
  4. "net"
  5. )
  6. func listenReuseport(network, address string) (net.Listener, error) {
  7. if conf.SoReuseport {
  8. logWarning("SO_REUSEPORT support is not implemented for your OS or Go version")
  9. }
  10. return net.Listen(network, address)
  11. }