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:
parent
2aa589c843
commit
c1d0f0e76c
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user