Open
Description
To be able to select one of the "preferred" network interface which InetAddress doesn't allow.
Add the support of spring InetUtils to levrage the
"spring.cloud.inetutils.[...]" configurations in DefaultApplicationFactory.getLocalHost()
private final Optional<org.springframework.cloud.commons.util.InetUtils> inetUtils
protected InetAddress getLocalHost() {
try {
inetUtils.map(InetUtils::findFirstNonLoopbackAddress).orElse(InetAddress.getLocalHost());
}
catch (final UnknownHostException ex) {
throw new IllegalArgumentException(ex.getMessage(), ex);
}
}