Only resolve host if explicitly allowed.
We have some settings that prevent host name resolution which should be repected by InetSocketTransportAddress#getHost() to only resolve if allowed or desired.
This commit is contained in:
parent
bbf669506b
commit
bd56b0a79e
|
@ -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