Merge "IpClient: fix in InitialConfiguration validation."

This commit is contained in:
Treehugger Robot
2018-08-24 09:18:38 +00:00
committed by Gerrit Code Review

View File

@@ -524,7 +524,7 @@ public class IpClient extends StateMachine {
return false; return false;
} }
// There no more than one IPv4 address // There no more than one IPv4 address
if (ipAddresses.stream().filter(Inet4Address.class::isInstance).count() > 1) { if (ipAddresses.stream().filter(LinkAddress::isIPv4).count() > 1) {
return false; return false;
} }