Review comment

This commit is contained in:
Dave Fisher 2023-09-05 12:57:51 -07:00
parent 35ebd4d3ed
commit 5c758d2066

View File

@ -73,7 +73,8 @@ public class SystemId {
return 0;
}).findFirst();
if (firstInetAddrForInterface.orElse(null).getHostAddress().contains(".")) return firstInetAddrForInterface;
if ( firstInetAddrForInterface.isPresent() &&
firstInetAddrForInterface.orElse(null).getHostAddress().contains(".")) return firstInetAddrForInterface;
Optional<InetAddress> firstIpAddress = ifaces.stream()
.flatMap(i4 -> {