feat!: remove TCP socket support for server connections (#2527)
Windows has supported Unix domain sockets for quite some time now, so falling back to TCP sockets can be removed. As a result, Unix domain sockets will be used on all platforms.
This commit is contained in:
1 parent
66bc58b4bf
commit
867cd99f50
5 files changed
+13
-33
No files matched your search
@@ -29,11 +29,9 @@ func serve() {
|
||||
|
||||
log.Print("*************** starting server ***************")
|
||||
|
||||
if gSocketProt == "unix" {
|
||||
setUserUmask()
|
||||
}
|
||||
setUserUmask()
|
||||
|
||||
l, err := net.Listen(gSocketProt, gSocketPath)
|
||||
l, err := net.Listen("unix", gSocketPath)
|
||||
if err != nil {
|
||||
log.Printf("listening socket: %s", err)
|
||||
return
|
||||
|
||||
Reference in new issue
Block a user