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

【bugfix】修复socks5代理未生效问题 #64

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nonbutAworker
Copy link

@nonbutAworker nonbutAworker commented Oct 3, 2021

问题描述:
你好,我们公司最近采购了贵司的滑块验证服务,因为我们公司是内网办公与外网不通,为了能够使用阿里云的服务,我们通过socks5代理放通了阿里云域名的访问权限,但是在集成代码的时候发现一直通信超时

问题原因:
socks5代理配置时需要形如host:port才可以使用,但是由于使用了net库中的url.parse,所以输入的uri就必须要形如schema://host:port,但是在初始化socks5代理时使用的url.string()返回的是整个uri,而期待的是host:port部分

测试:
公司内网已测试是ok的,但是还需要同步修改阿里云的另一个仓库代码(因为scoks5在Do request函数中未赋值),链接我稍后放到后面

@nonbutAworker
Copy link
Author

nonbutAworker commented Oct 3, 2021

这个是我在另一个仓库的改动,需要先给socks5相关参数赋值,修改这两处socks5代理功能就可以使用了
alibabacloud-go/tea-rpc#4

@yndu13
Copy link
Contributor

yndu13 commented Mar 23, 2023

感谢提出问题,我们还需要评估下。

@lovelife100
Copy link

支持,遇到了同样的问题。

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

Successfully merging this pull request may close these issues.

3 participants