Skip to content

Commit

Permalink
Always search on-network
Browse files Browse the repository at this point in the history
Nodes that have already been commissioned will always use on-network
setup regardless of what is in the setup payload.
  • Loading branch information
cecille committed Nov 29, 2021
1 parent 7d55d2e commit e0a17f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/controller/SetUpCodePairer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ CHIP_ERROR SetUpCodePairer::Connect(RendezvousInformationFlag rendezvousInformat
VerifyOrReturnError(searchOverAll || CHIP_NO_ERROR == err, err);
}

if (searchOverAll || rendezvousInformation == RendezvousInformationFlag::kOnNetwork)
// We always want to search on network because any node that has already been commissioned will use on-network regardless of the
// QR code flag.
{
if (CHIP_NO_ERROR == (err = StartDiscoverOverIP(discriminator, isShort)))
{
Expand Down

0 comments on commit e0a17f8

Please sign in to comment.