diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-01-24 03:15:19 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-01-24 03:15:19 -0800 |
| commit | 6ca10725b81fd20d8bce2f582f1b93b047d0a4c3 (patch) | |
| tree | 21e481993e3188a8a7680caf4cc3fde34e61717b /weed/shell | |
| parent | 096e088d7bb2a5dce7573b24c2d3006d1cb6f9ec (diff) | |
| download | seaweedfs-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/shell')
| -rw-r--r-- | weed/shell/commands.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/weed/shell/commands.go b/weed/shell/commands.go index 6e1348ca5..0e285214b 100644 --- a/weed/shell/commands.go +++ b/weed/shell/commands.go @@ -102,6 +102,10 @@ func (ce *CommandEnv) WithFilerClient(fn func(filer_pb.SeaweedFilerClient) error } +func (ce *CommandEnv) AdjustedUrl(location *filer_pb.Location) string { + return location.Url +} + func parseFilerUrl(entryPath string) (filerServer string, filerPort int64, path string, err error) { if strings.HasPrefix(entryPath, "http") { var u *url.URL |
