From d28720d6ad82f74c202816bf0b3f8aad09919fa2 Mon Sep 17 00:00:00 2001 From: Johnny Silverhand <55901716+superkeka@users.noreply.github.com> Date: Fri, 25 Aug 2023 17:22:51 +0400 Subject: [PATCH 1/2] removed check: isAmazonEndpoint --- x/minioclient.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/x/minioclient.go b/x/minioclient.go index ea23b237132..b024bdfa116 100644 --- a/x/minioclient.go +++ b/x/minioclient.go @@ -90,9 +90,6 @@ func NewMinioClient(uri *url.URL, creds *MinioCredentials) (*MinioClient, error) if !strings.Contains(uri.Host, ".") { uri.Host = defaultEndpointS3 } - if !s3utils.IsAmazonEndpoint(*uri) { - return nil, errors.Errorf("Invalid S3 endpoint %q", uri.Host) - } default: // minio if uri.Host == "" { return nil, errors.Errorf("Minio handler requires a host") From 34e84291bfefcc251a30fb97f70e1ce476305cf6 Mon Sep 17 00:00:00 2001 From: Johnny Silverhand <55901716+superkeka@users.noreply.github.com> Date: Fri, 25 Aug 2023 17:43:25 +0400 Subject: [PATCH 2/2] fix: imported and unused s3utils --- x/minioclient.go | 1 - 1 file changed, 1 deletion(-) diff --git a/x/minioclient.go b/x/minioclient.go index b024bdfa116..8160b32a9ec 100644 --- a/x/minioclient.go +++ b/x/minioclient.go @@ -10,7 +10,6 @@ import ( "github.com/golang/glog" minio "github.com/minio/minio-go/v6" "github.com/minio/minio-go/v6/pkg/credentials" - "github.com/minio/minio-go/v6/pkg/s3utils" "github.com/pkg/errors" )