Skip to content

Commit

Permalink
skip unix socket mode for windows
Browse files Browse the repository at this point in the history
fix #3013
  • Loading branch information
chrislusf committed May 4, 2022
1 parent f17cd0d commit f7366a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion weed/s3api/s3api_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f7366a9

Please sign in to comment.