mount: when outside cluster network, use filer as proxy to access volume servers

This commit is contained in:
Chris Lu committed 2021-01-24 01:41:38 -08:00
1 parent ccbdb38c89
commit 096e088d7b
15 files changed
+29 -41

No files matched your search

-4
View File
@@ -102,10 +102,6 @@ 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