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

钉钉SDK设置代理问题 #12

Open
fengqiangboy opened this issue Aug 31, 2020 · 1 comment
Open

钉钉SDK设置代理问题 #12

fengqiangboy opened this issue Aug 31, 2020 · 1 comment

Comments

@fengqiangboy
Copy link

请问可以开放SDK设置代理吗,公司内部服务器没有固定ip,想通过云服务器的固定ip做代理,完成钉钉请求

@tingyugetc520
Copy link

钉钉的SDK底层是支持代理的,只不过没有暴露出去,导致对代理支持很不好。
这里推荐一个SDK,支持代理设置:https://github.com/tingyugetc520/DtJava
通过配置代理配置实现

// 正向代理
configStorage.setHttpProxyType(DtConfigImpl.HttpProxyType.FORWARD.getCode());
configStorage.setHttpProxyHost();
configStorage.setHttpProxyPort();

或者是

// 反向代理
configStorage.setHttpProxyType(DtConfigImpl.HttpProxyType.REVERSE.getCode());
configStorage.setHttpProxyServer();

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

2 participants