summaryrefslogtreecommitdiff
path: root/util/network.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2019-12-23 15:45:21 +0300
committerWolfy-J <[email protected]>2019-12-23 15:45:21 +0300
commit15be7ab0f6deb6fc3c3a9b40462be7169a8c93e8 (patch)
tree27ef0173c5027ebc837c7e3170609d882136e6bf /util/network.go
parente499beab602d8d64a328ce2259ed9e2eddd2fb6e (diff)
- combine codecov push
Diffstat (limited to 'util/network.go')
-rw-r--r--util/network.go12
1 files changed, 1 insertions, 11 deletions
diff --git a/util/network.go b/util/network.go
index f8f8fb36..b9066de7 100644
--- a/util/network.go
+++ b/util/network.go
@@ -1,5 +1,3 @@
-// +build !windows
-
package util
import (
@@ -29,15 +27,7 @@ func CreateListener(address string) (net.Listener, error) {
}
}
- ls := net.ListenConfig{
- Control: func(network, address string, c syscall.RawConn) error {
- return c.Control(func(descriptor uintptr) {
- syscall.SetsockoptInt(int(descriptor), syscall.SOL_SOCKET, syscall.SO_REUSEPORT, 1)
- })
- },
- }
-
- return ls.Listen(dsn[0], dsn[1])
+ return net.Listen(dsn[0], dsn[1])
}
// fileExists checks if a file exists and is not a directory before we