Commit 9e3f8c08 authored by Steven Allen's avatar Steven Allen Committed by Matt Joiner

windows: use SO_REUSEADDR form sys/windows instead of from syscall (#63)

Some constants in syscall are wrong, IIRC, and I'd like to avoid it as much as
possible.
parent 10e348b4
......@@ -8,6 +8,6 @@ import (
func Control(network, address string, c syscall.RawConn) (err error) {
return c.Control(func(fd uintptr) {
err = windows.SetsockoptInt(windows.Handle(fd), windows.SOL_SOCKET, syscall.SO_REUSEADDR, 1)
err = windows.SetsockoptInt(windows.Handle(fd), windows.SOL_SOCKET, windows.SO_REUSEADDR, 1)
})
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment