mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
SystemID fix orElse
This commit is contained in:
parent
37cde64b93
commit
cb35f2ddd8
@ -74,7 +74,7 @@ public class SystemId {
|
|||||||
}).findFirst();
|
}).findFirst();
|
||||||
|
|
||||||
if ( firstInetAddrForInterface.isPresent() &&
|
if ( firstInetAddrForInterface.isPresent() &&
|
||||||
firstInetAddrForInterface.orElse(null).getHostAddress().contains(".")) return firstInetAddrForInterface;
|
firstInetAddrForInterface.get().getHostAddress().contains(".")) return firstInetAddrForInterface;
|
||||||
|
|
||||||
Optional<InetAddress> firstIpAddress = ifaces.stream()
|
Optional<InetAddress> firstIpAddress = ifaces.stream()
|
||||||
.flatMap(i4 -> {
|
.flatMap(i4 -> {
|
||||||
|
Loading…
Reference in New Issue
Block a user