diff --git a/internal/server/server.go b/internal/server/server.go index fe497768ebe03247c5c55931f06f6225d0b9cdee..14c0bfd75c73bf8d352d92a38975b02b83b686bc 100644 --- a/internal/server/server.go +++ b/internal/server/server.go @@ -6,9 +6,7 @@ import ( "log/slog" "net" "net/http" - "os" "os/user" - "path/filepath" "runtime" "strings" @@ -64,7 +62,7 @@ func DefaultAddr() string { if runtime.GOOS == "windows" { return fmt.Sprintf(`\\.\pipe\%s`, sockPath) } - return filepath.Join(os.TempDir(), sockPath) + return fmt.Sprintf("/tmp/%s", sockPath) } // Server represents a Crush server instance bound to a specific address.