aboutsummaryrefslogtreecommitdiff
path: root/weed/s3api
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-01-24 03:15:19 -0800
committerChris Lu <chris.lu@gmail.com>2021-01-24 03:15:19 -0800
commit6ca10725b81fd20d8bce2f582f1b93b047d0a4c3 (patch)
tree21e481993e3188a8a7680caf4cc3fde34e61717b /weed/s3api
parent096e088d7bb2a5dce7573b24c2d3006d1cb6f9ec (diff)
downloadseaweedfs-6ca10725b81fd20d8bce2f582f1b93b047d0a4c3.tar.xz
seaweedfs-6ca10725b81fd20d8bce2f582f1b93b047d0a4c3.zip
Revert "mount: when outside cluster network, use filer as proxy to access volume servers"
This reverts commit 096e088d7bb2a5dce7573b24c2d3006d1cb6f9ec.
Diffstat (limited to 'weed/s3api')
-rw-r--r--weed/s3api/s3api_handlers.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/weed/s3api/s3api_handlers.go b/weed/s3api/s3api_handlers.go
index 57b26f3dd..6935c75bd 100644
--- a/weed/s3api/s3api_handlers.go
+++ b/weed/s3api/s3api_handlers.go
@@ -50,6 +50,9 @@ func (s3a *S3ApiServer) WithFilerClient(fn func(filer_pb.SeaweedFilerClient) err
}, s3a.option.FilerGrpcAddress, s3a.option.GrpcDialOption)
}
+func (s3a *S3ApiServer) AdjustedUrl(location *filer_pb.Location) string {
+ return location.Url
+}
// If none of the http routes match respond with MethodNotAllowed
func notFoundHandler(w http.ResponseWriter, r *http.Request) {