From f7366a9668031880795385cb48ce1e12cc6c4329 Mon Sep 17 00:00:00 2001 From: chrislu Date: Wed, 4 May 2022 10:14:34 -0700 Subject: [PATCH] skip unix socket mode for windows fix https://github.com/chrislusf/seaweedfs/issues/3013 --- weed/s3api/s3api_server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/s3api/s3api_server.go b/weed/s3api/s3api_server.go index 561edd924..b0b8e27e4 100644 --- a/weed/s3api/s3api_server.go +++ b/weed/s3api/s3api_server.go @@ -54,7 +54,7 @@ func NewS3ApiServer(router *mux.Router, option *S3ApiServerOption) (s3ApiServer randomClientId: util.RandomInt32(), filerGuard: security.NewGuard([]string{}, signingKey, expiresAfterSec, readSigningKey, readExpiresAfterSec), } - if option.LocalFilerSocket == nil { + if option.LocalFilerSocket == nil || *option.LocalFilerSocket == "" { s3ApiServer.client = &http.Client{Transport: &http.Transport{ MaxIdleConns: 1024, MaxIdleConnsPerHost: 1024,