Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

代理设置 #312

Open
NiuGuohui opened this issue May 16, 2024 · 4 comments
Open

代理设置 #312

NiuGuohui opened this issue May 16, 2024 · 4 comments

Comments

@NiuGuohui
Copy link

如果命令行或者系统开启了代理,coscmd会自动走代理,但是期望可以配置代理规则,可选的走其他代理或者不走代理

@lewzylu
Copy link
Collaborator

lewzylu commented May 20, 2024

配置里有一个proxy参数,看看是否能满足需求

@NiuGuohui
Copy link
Author

配置里有一个proxy参数,看看是否能满足需求

coscmd config -h 命令没有proxy相关配置提示,文档里也没相关说明。
配置文件中这样配置是否可行?image

@NiuGuohui
Copy link
Author

在Mac上,使用类似Clash类代理时,上传大文件会遇到一直提示'ETag',导致上传超时...

@zeldalyc
Copy link

zeldalyc commented Oct 23, 2024

修改cos_client.py,在
`
class CosS3Client(object):

def __init__(self, conf):
    self._conf = conf
    self._session = requests.session()`

后面增加
self._session.trust_env = False

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants