aliyun / ossutil

A user friendly command line tool to access AliCloud OSS.
MIT License
465 stars 100 forks source link

Please support socks/http proxy #39

Open bohanyang opened 6 years ago

bohanyang commented 6 years ago

We need upload/download through proxy.

abo969 commented 6 years ago

Can you please describe your use case in detail? As by design, ossutil can upload/download anything to/from OSS.

bohanyang commented 6 years ago

Uploading from US to China, the network could be very very very slow and we may use a (relay) proxy which has better connectivity to Chinese network.

bohanyang commented 6 years ago

Golang has its own network implementation and it is not possible to use something like proxychains. But also since the proxy implementation is already in golang's own network package, it may not be so difficult to support this feature. I just know a little about Golang, otherwise I'll try to make pull request... Thank you very much!

abo969 commented 6 years ago

Really appreciate your feedback on this topic!

Per my understanding, you could configure your network to use proxy. As long as you use region/endpoint in China, might your data transition will go through proxy. Currently ossutil does not care that.

As for your case, US also have data center. So I would recommend you to use the endpoint in US, e.g., oss-us-west-1.aliyuncs.com, or oss-us-east-1.aliyuncs.com. If you still want to copy your data to Chinese data center, might there is a way you copy them via internal network.