Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
问题描述:
你好,我们公司最近采购了贵司的滑块验证服务,因为我们公司是内网办公与外网不通,为了能够使用阿里云的服务,我们通过socks5代理放通了阿里云域名的访问权限,但是在集成代码的时候发现一直通信超时
问题原因:
socks5代理配置时需要形如host:port才可以使用,但是由于使用了net库中的url.parse,所以输入的uri就必须要形如schema://host:port,但是在初始化socks5代理时使用的url.string()返回的是整个uri,而期待的是host:port部分
测试:
公司内网已测试是ok的,但是还需要同步修改阿里云的另一个仓库代码(因为scoks5在Do request函数中未赋值),链接我稍后放到后面