s3: skip the local filer socket on Windows (#11921)

The filer only listens on its unix socket when GOOS is not windows, so
with a filer socket path configured on Windows the S3 server dialed a
socket that never exists.

Fixes #7278
This commit is contained in:
Junker der Provinz authored and GitHub committed 2026-10-21 20:35:19 -07:00
1 parent 74da88fc29
commit 4854c6a0f4
1 file changed
+2 -1
+2 -1
View File
@@ -341,7 +341,8 @@ func (s3opt *S3Options) startS3Server() bool {
router := mux.NewRouter().SkipClean(true)
var localFilerSocket string
if s3opt.localFilerSocket != nil {
// The filer only listens on its local socket outside Windows.
if s3opt.localFilerSocket != nil && runtime.GOOS != "windows" {
localFilerSocket = *s3opt.localFilerSocket
}
var s3ApiServer *s3api.S3ApiServer