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:
valoq authored and GitHub committed 2026-04-16 11:37:30 +10:00
1 parent 66bc58b4bf
commit 867cd99f50
5 files changed
+13 -33

No files matched your search

+2 -4
View File
@@ -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