Skip to content

Commit

Permalink
Creating the unix socket in temp dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Catalyn45 committed Mar 17, 2024
1 parent 5f82127 commit dbf08a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion os_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ func init() {
gDefaultSocketProt = "tcp"
gDefaultSocketPath = "127.0.0.1:12345"
} else {
gDefaultSocketPath = filepath.Join(data, "lf", fmt.Sprintf("lf.%s.sock", gUser.Username))
runtime := os.TempDir()
gDefaultSocketPath = filepath.Join(runtime, fmt.Sprintf("lf.%s.sock", gUser.Username))
syscall.Close(socket)
}
}
Expand Down

0 comments on commit dbf08a9

Please sign in to comment.