Merge pull request #12986 from s1monw/fix_host_resolving

Only resolve host if explicitly allowed.
This commit is contained in:
Simon Willnauer 2015-08-19 15:25:55 +02:00
commit ca28acc373
1 changed files with 5 additions and 1 deletions

View File

@ -94,7 +94,11 @@ public final class InetSocketTransportAddress implements TransportAddress {
@Override
public String getHost() {
if (resolveAddress) {
return address.getHostName();
} else {
return getAddress();
}
}
@Override