mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
20 lines
484 B
Go
20 lines
484 B
Go
//go:build windows
|
|
// +build windows
|
|
|
|
package transport
|
|
|
|
import (
|
|
"fmt"
|
|
"syscall"
|
|
)
|
|
|
|
func setReusePort(network, address string, c syscall.RawConn) error {
|
|
return fmt.Errorf("port reuse is not supported on Windows")
|
|
}
|
|
|
|
// Windows supports SO_REUSEADDR, but it may cause undefined behavior, as
|
|
// there is no protection against port hijacking.
|
|
func setReuseAddress(network, addr string, conn syscall.RawConn) error {
|
|
return fmt.Errorf("address reuse is not supported on Windows")
|
|
}
|