We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f88697 commit a536170Copy full SHA for a536170
config.go
@@ -55,6 +55,11 @@ func DefaultSocket() (string, error) {
55
return "", err
56
}
57
58
+ hostname, err := os.Hostname()
59
+ if err != nil {
60
+ return "", err
61
+ }
62
+
63
// Build candidate directories in priority order.
64
candidates := []string{}
65
subdir := "pago"
@@ -85,7 +90,7 @@ func DefaultSocket() (string, error) {
85
90
// If no candidate exists, fall back to the temporary directory.
86
91
if runtimeDir == "" {
87
92
runtimeDir = os.TempDir()
88
- subdir = "pago-" + currentUser.Username
93
+ subdir = "pago-" + currentUser.Username + "-" + hostname
89
94
95
96
return filepath.Join(runtimeDir, subdir, "socket"), nil
0 commit comments