Skip to content

Commit

Permalink
Update tcp.go
Browse files Browse the repository at this point in the history
  • Loading branch information
opavlyuk authored May 25, 2020
1 parent d1b9a48 commit 306d10b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func NewReusablePortListener(proto, addr string) (l net.Listener, err error) {
return nil, err
}

if err = syscall.SetsockoptInt(fd, syscall.SOL_SOCKET, 0x0200, 1); err != nil {
if err = syscall.SetsockoptInt(fd, syscall.SOL_SOCKET, reusePort, 1); err != nil {
syscall.Close(fd)
return nil, err
}
Expand Down

0 comments on commit 306d10b

Please sign in to comment.