From 306d10bcf6afbccf6514931c843e8679e0647672 Mon Sep 17 00:00:00 2001 From: opavlyuk <40970635+opavlyuk@users.noreply.github.com> Date: Mon, 25 May 2020 17:30:32 +0300 Subject: [PATCH] Update tcp.go --- tcp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcp.go b/tcp.go index 87e02e0..b49b326 100644 --- a/tcp.go +++ b/tcp.go @@ -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 }