mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-05 19:47:47 +01:00
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:
1 parent
74da88fc29
commit
4854c6a0f4
1 file changed
+2
-1
+2
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user