Merge pull request #12986 from s1monw/fix_host_resolving
Only resolve host if explicitly allowed.
This commit is contained in:
commit
ca28acc373
|
@ -94,7 +94,11 @@ public final class InetSocketTransportAddress implements TransportAddress {
|
|||
|
||||
@Override
|
||||
public String getHost() {
|
||||
return address.getHostName();
|
||||
if (resolveAddress) {
|
||||
return address.getHostName();
|
||||
} else {
|
||||
return getAddress();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue