Skip to content

Commit a3e5276

Browse files
committed
feat(chore/windows): move socket path
Signed-off-by: Johannes Großmann <grossmann.johannes@t-online.de>
1 parent 60ebfbf commit a3e5276

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

x/api/defaults_windows.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ import (
2222
)
2323

2424
func DaemonSocketPath() string {
25-
base := os.Getenv("ProgramData")
25+
base := os.Getenv("LOCALAPPDATA")
2626
if base == "" {
27-
base = `C:\ProgramData`
27+
base = filepath.Join(os.Getenv("USERPROFILE"), "AppData", "Local")
2828
}
2929
return filepath.Join(base, "DockerSecretsEngine", "service", "daemon.sock")
3030
}

0 commit comments

Comments
 (0)