1
0
mirror of https://github.com/golang/go synced 2024-11-20 07:54:39 -07:00

net: do not set SO_REUSEADDR for windows

Fixes #2307.

R=golang-dev, mikioh.mikioh
CC=golang-dev
https://golang.org/cl/5306049
This commit is contained in:
Alex Brainman 2011-10-24 09:11:01 +11:00
parent 2aa589c843
commit c1d0f0e76c

View File

@ -11,9 +11,6 @@ import (
)
func setKernelSpecificSockopt(s syscall.Handle, f int) {
// Allow reuse of recently-used addresses and ports.
syscall.SetsockoptInt(s, syscall.SOL_SOCKET, syscall.SO_REUSEADDR, 1)
// Allow broadcast.
syscall.SetsockoptInt(s, syscall.SOL_SOCKET, syscall.SO_BROADCAST, 1)