diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-01-28 15:23:16 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-01-28 15:23:16 -0800 |
| commit | 19295600f94fd18d09323cb17e89c115c811fb52 (patch) | |
| tree | 0192ac117341456c3dce6d5ba915c8a5e5e0fbb7 /weed/filesys/wfs_write.go | |
| parent | 990fa69bfeac65a72bec1539993e32633858c8f5 (diff) | |
| download | seaweedfs-19295600f94fd18d09323cb17e89c115c811fb52.tar.xz seaweedfs-19295600f94fd18d09323cb17e89c115c811fb52.zip | |
mount: change option name to volumeServerAccess, with publicUrl and filerProxy modes
Diffstat (limited to 'weed/filesys/wfs_write.go')
| -rw-r--r-- | weed/filesys/wfs_write.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/filesys/wfs_write.go b/weed/filesys/wfs_write.go index 54e114013..4e1e71672 100644 --- a/weed/filesys/wfs_write.go +++ b/weed/filesys/wfs_write.go @@ -53,7 +53,7 @@ func (wfs *WFS) saveDataAsChunk(fullPath util.FullPath) filer.SaveDataAsChunkFun } fileUrl := fmt.Sprintf("http://%s/%s", host, fileId) - if wfs.option.OutsideContainerClusterMode { + if wfs.option.VolumeServerAccess == "filerProxy" { fileUrl = fmt.Sprintf("http://%s/?proxyChunkId=%s", wfs.option.FilerAddress, fileId) } uploadResult, err, data := operation.Upload(fileUrl, filename, wfs.option.Cipher, reader, false, "", nil, auth) |
