Skip to content

Commit 84970a0

Browse files
authored
Fix compiler error on tip of tree (project-chip#32575)
* Fix compiler error on tip of tree * Address PR comment
1 parent cdfca0f commit 84970a0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/controller/AbstractDnssdDiscoveryController.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,11 @@ void AbstractDnssdDiscoveryController::OnNodeDiscovered(const chip::Dnssd::Disco
3434
{
3535
continue;
3636
}
37+
// TODO(#32576) Check if IP address are the same. Must account for `numIPs` in the list of `ipAddress`.
38+
// Additionally, must NOT assume that the ordering is consistent.
3739
if (strcmp(discoveredNode.resolutionData.hostName, nodeData.resolutionData.hostName) == 0 &&
3840
discoveredNode.resolutionData.port == nodeData.resolutionData.port &&
39-
discoveredNode.resolutionData.ipAddress == nodeData.resolutionData.ipAddress)
41+
discoveredNode.resolutionData.numIPs == nodeData.resolutionData.numIPs)
4042
{
4143
discoveredNode = nodeData;
4244
if (mDeviceDiscoveryDelegate != nullptr)

0 commit comments

Comments
 (0)