【发布时间】:2017-09-18 21:04:46
【问题描述】:
使用 nodejs 或 java 中的 grpc,让 grpc 客户端通过代理连接到服务器所需的属性或配置是什么?
我找不到解释设置的示例或文档。我需要在代码本身中做些什么吗?
我使用代理,我不确定问题是我的设置不正确还是我的代理不支持 grpc。它支持 http/2 作为协议升级。
我在 java 中的代理设置是:
-Dhttp.proxyHost=xxx.xxx.xxx
-Dhttp.proxyPort=8888
-Dhttp.nonProxyHosts="*.nowhere.nothing"
-Dhttps.proxyHost=xxx.xxx.com
-Dhttps.proxyPort=8888
-Dhttps.nonProxyHosts="*.nowhere.nothing"
-Dsocks.proxyHost=xxx.xxx.xxx
-Dsocks.proxyPort=8888
-Dsocks.nonProxyHosts="*.nowhere.nothing"
【问题讨论】: