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
|
@Override
|
||||||
public String getHost() {
|
public String getHost() {
|
||||||
|
if (resolveAddress) {
|
||||||
return address.getHostName();
|
return address.getHostName();
|
||||||
|
} else {
|
||||||
|
return getAddress();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue