Skip to content

Commit

Permalink
Be consistent about host names in RouteSelector.
Browse files Browse the repository at this point in the history
Use the host specified by the address, and not URI.getHost().

bug: 18023709
Change-Id: I2c39c2ce89049130dc00047c8de6f214159144c0
  • Loading branch information
narayank authored and squarejesse committed Nov 4, 2014
1 parent 912d09e commit c3bc8e2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ private void resetNextInetSocketAddress(Proxy proxy) throws UnknownHostException
String socketHost;
int socketPort;
if (proxy.type() == Proxy.Type.DIRECT) {
socketHost = uri.getHost();
socketHost = address.getUriHost();
socketPort = getEffectivePort(uri);
} else {
SocketAddress proxyAddress = proxy.address();
Expand Down

0 comments on commit c3bc8e2

Please sign in to comment.