File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -176,9 +176,9 @@ void PacketDataReporter::OnOperationalIPAddress(const chip::Inet::IPAddress & ad
176
176
// This code assumes that all entries in the mDNS packet relate to the
177
177
// same entity. This may not be correct if multiple servers are reported
178
178
// (if multi-admin decides to use unique ports for every ecosystem).
179
- mNodeData .mAddress [mDiscoveredNodeData . numIPs ++] = addr;
180
- mNodeData .mInterfaceId = mInterfaceId ;
181
- mHasIP = true ;
179
+ mNodeData .mAddress [mNodeData . mNumIPs ++] = addr;
180
+ mNodeData .mInterfaceId = mInterfaceId ;
181
+ mHasIP = true ;
182
182
}
183
183
184
184
void PacketDataReporter::OnDiscoveredNodeIPAddress (const chip::Inet::IPAddress & addr)
@@ -402,13 +402,13 @@ CHIP_ERROR MinMdnsResolver::Init(chip::Inet::InetLayer * inetLayer)
402
402
{
403
403
// / Note: we do not double-check the port as we assume the APP will always use
404
404
// / the same inetLayer and port for mDNS.
405
+ mSystemLayer = inetLayer->SystemLayer ();
406
+
405
407
if (GlobalMinimalMdnsServer::Server ().IsListening ())
406
408
{
407
409
return CHIP_NO_ERROR;
408
410
}
409
411
410
- mSystemLayer = inetLayer->SystemLayer ();
411
-
412
412
return GlobalMinimalMdnsServer::Instance ().StartServer (inetLayer, kMdnsPort );
413
413
}
414
414
You can’t perform that action at this time.
0 commit comments