mirror of https://github.com/grpc/grpc-java.git
core: Add port to proxy URL for Authenticator
Otherwise the scheme (https) is used to determine the port.
This commit is contained in:
parent
698ba803d5
commit
8016a1f0e5
|
|
@ -49,7 +49,7 @@ class ProxyDetectorImpl implements ProxyDetector {
|
||||||
String host, InetAddress addr, int port, String protocol, String prompt, String scheme) {
|
String host, InetAddress addr, int port, String protocol, String prompt, String scheme) {
|
||||||
URL url = null;
|
URL url = null;
|
||||||
try {
|
try {
|
||||||
url = new URL(protocol, host, "");
|
url = new URL(protocol, host, port, "");
|
||||||
} catch (MalformedURLException e) {
|
} catch (MalformedURLException e) {
|
||||||
// let url be null
|
// let url be null
|
||||||
log.log(
|
log.log(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue